On 3/27/12 9:38 AM, Robert Samal wrote:
Hi,

I'm sorry if this is covered somewhere in the documentation -- but I'm
puzzled by the following behaviour of solve:

sage: solve(sin(x)/cos(x)==1,x)
[sin(x) == cos(x)]
sage: solve(tan(x)==1,x)
[x == 1/4*pi]

I would assume these two equation are equivalent, but evidently sage
disagrees. Who is right? :-)
What can I do to get the solution automatically, without substituting
tan manually?

How about

solve(sin(x)/cos(x)==1,x,to_poly_solve=True)

http://aleph.sagemath.org/?z=eJwrzs8pS9UozszTqNDUT84vBlK2toY6FTol-fEF-TmV8cUgBbYhRaWpmgBdMw-x

That gives the general solution, if the z... variable is an integer.

Jason

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to