I am trying to create a polynomial expression through the following commands:
from sympy import *
x = symbols('x')
P1 = sympy.poly(sympy.symbols('b0:3'), x)
>>> P1
Poly(b0*x**2 + b1*x + b2, x, domain='ZZ[b0,b1,b2]')
How do I extract the expression from the polynomial object?
In the previous version Sympy 0.6.7, there used to be an attribute for the 'Poly' class, 'as_basic().'
However, this attribute does not exist for the Poly class anymore. Could somebody help me in extracting the polynomial expression from the Poly object?
Srini