All Questions
Tagged with polynomials python
8 questions
0
votes
1
answer
190
views
Solving a polynomial with NumPy
I'm trying to do something that I thought would be very straightforward but somehow I'm struggling.
I have a time series and I want to extrapolate it, assuming a linear trend, to forecast when will it ...
0
votes
0
answers
711
views
Curve fitting using a piecewise polynomial
I am trying to fit a piecewise polynomial function
Code:
...
0
votes
1
answer
2k
views
Fitting a monotonically increasing spline function
I want to fit a monotonically increasing smooth spline function for a dataset
Code:
...
0
votes
0
answers
125
views
Recursion relations for integrating Gaussian functions
I'm trying to implement a numerical method used in quantum chemistry from scratch. I'm using this paper as a reference. It's also available on Sci-Hub. So, the method requires calculating integrals of ...
4
votes
1
answer
356
views
Is there any way/any python function to calculate the condition number of the roots of a polynomial directly?
I know that NumPy has linalg.cond(A) to find the condition number of a matrix A. But, if I want to find the condition numbers of the roots of a large polynomial ...
2
votes
0
answers
2k
views
Solve system of polynomial equations with Python
I have 5 at most 4th order polynomials in 5 variables,
$$p_i(x_1,x_2,x_3,x_4,x_5) \qquad i = 1, \ldots, 5$$
where all coefficients are either rational or floating point. I'd would like to get the ...
1
vote
0
answers
547
views
Polynomial approximation - Vandermonde matrix creation - precision
I am trying to fit a polynomial through 340 points in a 3D space, i.e.
$$f(x,y,z) = k$$
I asked previously about the theory behind polynomial interpolation here ->
Polynomial interpolation
Few ...
5
votes
1
answer
2k
views
Rational functions in Python
I would like use Python to verify the following identities:
$ \frac{1}{1-z} = 1 + z + z^2 + z^3 + \dots $
$ \frac{1}{1-z - z^2} = 1 + z + 2z^2 + 3z^3 + \dots $
$ q \prod_{n \geq 1} (1 - q^n)^{24} = ...