Hi

If I do

a=Symbol('a', real=True)
b=Symbol('b')

and do

solve(a**2-1,a)
I get
[−1, 1]
solve(b**2-1,b)
[−1, 1]

as expected.

solve(a**2+1,a)
I get
[ ]
solve(b**2+1,b)
[−i, i]

again, ok.

But
solve(sympify("a**2+1"),a)
[]
*solve(sympify("a**2-1"),a)*
*[]*
solve(sympify("b**2-1"),b)
[−1, 1]
solve(sympify("b**2+1"),b)
[−i, i]

So solve(sympify("something with a"), a)  will always return the empty list.
Why is that?
Any argument I could pass to sympify to amend this?

The same its true for solveset.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/ec111849-6999-4b62-bbb6-87a2375adb22%40googlegroups.com.

Reply via email to