Issue 1160: mathematica("2*Sqrt[x+y]") fails
http://code.google.com/p/sympy/issues/detail?id=1160
New issue report by tetaberta:
In [13]: from sympy.parsing.mathematica import mathematica
In [14]: mathematica("2*Sqrt[x+y]")
---------------------------------------------------------------------------
<class 'sympy.core.sympify.SympifyError'> Traceback (most recent call last)
/home/stepan/phys/past-rozdeleni/<ipython console> in <module>()
/usr/lib/python2.5/site-packages/sympy/parsing/mathematica.py in
mathematica(s)
3
4 def mathematica (s):
----> 5 return sympify(parse(s))
6
7 def parse (s):
/usr/lib/python2.5/site-packages/sympy/core/sympify.py in sympify(a,
sympify_lists, locals)
126 return
ast_parser.SymPyParser(local_dict=locals).parse_expr(a)
127 except Exception, exc:
--> 128 raise SympifyError(a, exc)
129 raise SympifyError("%r is NOT a valid SymPy expression" % a)
130
<class 'sympy.core.sympify.SympifyError'>: Sympify of expression
'2*Sqrt[x+y]' failed, because of exception being raised:
TypeError: 'Symbol' object is unsubscriptable
Issue attributes:
Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
--
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
-~----------~----~----~----~------~----~------~--~---