How Do I Feed Numpy.polynomial.chebyshev.chebyshev Coefficients?
How do I feed np.polynomial.Chebyshev coefficients? I'm finding the API to be unintuitive. It looks like it is assuming some coefficient values > import numpy as np > xf = 3
Solution 1:
If you look at the Chebyshev docs, you'll find that the first argument is the coefficients, not the domain. The domain is the optional second argument. For example,
np.polynomial.Chebyshev([0, 3])
is 0*T_0 + 3*T_1
.
Post a Comment for "How Do I Feed Numpy.polynomial.chebyshev.chebyshev Coefficients?"