Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Simplify Solvers
New issue 3954 by [email protected]: simplify result of
solve((-a*sin(theta)*cos(phi) - b*cos(theta)*sin(phi)), theta)
http://code.google.com/p/sympy/issues/detail?id=3954
In [81]: print solve(trigsimp((-a*sin(theta)*cos(phi) -
b*cos(theta)*sin(phi))/cos(theta)), theta)
[-atan(b*tan(phi)/a)]
In [82]: print solve((-a*sin(theta)*cos(phi) - b*cos(theta)*sin(phi)),
theta)
[2*atan((-a*tan(phi/2)**2 + a + sqrt(a**2*tan(phi/2)**4 -
2*a**2*tan(phi/2)**2 + a**2 + 4*b**2*tan(phi/2)**2))/(2*b*tan(phi/2))),
-2*atan((a*tan(phi/2)**2 - a + sqrt(a**2*tan(phi/2)**4 -
2*a**2*tan(phi/2)**2 + a**2 + 4*b**2*tan(phi/2)**2))/(2*b*tan(phi/2)))]
The two solutions should be the same (at least they should be, since the
equations differ only by a factor of 1/cos(phi)). But I can't for the life
of me get the second one to simplify (to anything).
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.