Greetings all,
First, thanks a lot for this great package.
Now I encountered a small unexpected behaviour trying to solve a
simple expression. Here it is:
from __future__ import division
from sympy import *
a=Symbol('a')
b=Symbol('b')
c=Symbol('c')
eq=c-sqrt(a**2+b**2)
solve(eq,a)
--> []
So SymPy seems unable to solve for 'a' from the given equation. If I
transform it
a little like this (yes, it's the Pythagorean theorem):
eq2=c**2-(a**2+b**2)
...then it works:
solve(eq2,a)
[(-b**2 + c**2)**(1/2), -(-b**2 + c**2)**(1/2)]
I tried to play with assumptions but with no luck. I also tried things
like
eq3=Eq(c, sqrt(a**2+b**2))
solve(eq3,a)
...but it doesn't work either.
What am I doing wrong? Any hint greatly appreciated.
Best regards,
--
You received this message because you are subscribed to the Google Groups
"sympy" 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?hl=en.