[sympy] Possible Bug in sympify

2009-05-05 Thread Mateusz Paprocki
Hi, On Tue, May 05, 2009 at 03:00:45AM -0700, Colin Gillespie wrote: Hi, I think that the expected behaviour would be for pow(x,2) to return x^2, as opposed to a general function. Otherwise, it would be inconsistent with how 'sin' and 'exp' are handled (for example). I also think the

[sympy] Possible Bug in sympify

2009-04-30 Thread Colin Gillespie
Hi, In the code: x=sympify('pow(PZ,2)') x pow(PZ, 2) Poly(x,Symbol('PZ')) Traceback (most recent call last): File stdin, line 1, in module File /data/ncsg3/pythonModules/lib/python2.5/site-packages/ sympy-0.6.4-py2.5.egg/sympy/polys/polynomial.py, line 402, in __new__ terms =