There is already some function in sympy/parsing/mathematica.py that is supposed
to handle the spaces. As far as I remember, though, it isn't integrated in
sympify, (and also it could use some improvement).
+1 for better parsers for other computer algebra systems. A good Maple parser
would b
I copied an alt field of the expression displayed at wolfram alpha. It
contained escaped slashes so S() failed. Perhaps S could filter those
out:
h[5] >>> S('1\/2')
Traceback (most recent call last):
File "", line 1, in
File "sympy\core\sympify.py", line 214, in sympify
return ast_parser.