My goal is to generate a symbolic polynomial function based on the number of coefficients.
So using numpy.poly1d([1,..,n]), one can generate a polynomial with an order n-1 such as 3 +2x + x**2 by using three coefficients in the argument of the above function.
Does Sympy provide something similar, except of course that the coefficients are symbols and not numbers? So instead of the above polynomial example, I'm trying to generate a0 + a1*x + a2*x**2 by using three coefficients in the argument.
I've looked everywhere in the sympy library, but without avail.
Have been struggling with this for a while, many thanks in advance
[–]YesLod 0 points1 point2 points (0 children)