[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

[sympy] Error message for calling Point() with one argument

2015-05-27 Thread Gaurav Dhingra
Hi >>> from sympy import * >>> Point( 1 ) ValueError: Only two dimensional points currently supported. I know that for more that two arguments it is correct output( since more than two arguments are not currently supported ), but for one argument would not better message be something different

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

2015-05-27 Thread Gaurav Dhingra
I guess .as_expr() would do the job you intend to perform >>> P1.as_expr() b0*x**2 + b1*x + b2 On Thursday, May 28, 2015 at 4:20:40 AM UTC+5:30, Srinivasan Rajaraman wrote: > > I am trying to create a polynomial expression through the following > commands: > > from sympy import * > > x = sy