[sympy] Re: Hi, I am new to Sympy. I am using Sympy 0.7.6 on Ubuntu, Python 2.7.6.

2015-05-28 Thread Srinivasan Rajaraman
Thanks! That worked. I just didn't know which procedure it was to extract the expression. On Wednesday, May 27, 2015 at 5:50:40 PM UTC-5, Srinivasan Rajaraman wrote: > > I am trying to create a polynomial expression through the following > commands: > > from sympy import

[sympy] Hi, I am new to Sympy. I am using Sympy 0.7.6 on Ubuntu, Python 2.7.6.

2015-05-27 Thread Srinivasan Rajaraman
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