Comment #16 on issue 871 by Vinzent.Steinberg: failing sympify on
live.sympy.org
http://code.google.com/p/sympy/issues/detail?id=871
The output of parser.py:
>>> 1
Real(1)
=> One
>>> +1
Add(Real(1))
=> One
>>> -1
-(Real(1))
=> NegativeOne
>>> 1 + 2
Add(Real(1), Real(2))
=> Integer(3)
>>> 1+2+3
Add(Add(Real(1), Real(2)), Real(3))
=> Integer(6)
>>> 1+2*3
Add(Real(1), Mul(Real(2), Real(3)))
=> Integer(7)
>>> (1+2)*3
Mul(Add(Real(1), Real(2)), Real(3))
=> Integer(9)
>>> log(2*(1+10**3))
log(Mul(Real(2), Add(Real(1), Pow(Real(10), Real(3)))))
=> Function('log')(Integer(2002))
>>> (1+x)*3
Mul(Add(Real(1), Symbol('x')), Real(3))
=> Add(Integer(3), Mul(Integer(3), Symbol('x')))
>>> 2.3
Real(2.3)
=> Real('2.2999999999999998', prec=15)
>>> 1.0+1.0j
Add(Real(1.0), Real(1.0j))
Obviously complex numbers need to be fixed.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.