[sympy] Sympifyin string with superscripts

2018-01-25 Thread darmendariz1998
I am trying to sympify a string like these str1="a^0_0" ns={} ns['a^0_0']=Symbol('a^0_0') pprint(sympify(str1,locals=ns)) But I get the following error Traceback (most recent call last): File "cuaterniones_basic.py", line 114, in pprint(sympify(str1,locals=ns))

Re: [sympy] Sympifyin string with superscripts

2018-01-25 Thread Leonid Kovalev
To avoid duplication of effort, it should be mentioned that this was also posted on Stack Overflow: https://stackoverflow.com/questions/48454848/sympy-sympifying-strings-containing-expressions-with-superscripts -- You received this message because you are subscribed to the Google Groups "sympy"