Javier Marquez wrote:
  solve(sin(x)==1/2,x) produces only one solution. Is here a way to have sage 
produce all real solutions ? Thx


sage: solve(sin(x)==1/2,x,to_poly_solve='force')
[x == 5/6*pi + 2*pi*z50, x == 1/6*pi + 2*pi*z48]

is probably what you've been looking for.

('z50' and 'z48' indicate arbitrary integers.)

assume() doesn't seem to have an impact here, and passing further relations to solve() doesn't seem to give useful results either.


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-support" 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/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to