#8390: Find all roots of a trigonometric equation
---------------------------+------------------------------------------------
Reporter: olazo | Owner: olazo
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: algebra | Keywords: trigonometric, roots
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
When using
{{{
x,y=var('x,y')
solve([sin(2*x-pi/6)==1/2],x)
}}}
sage returns [x == 1/6*pi]. Which is correct, but we would wish to have
all roots. This can be done with:
{{{
solve([sin(2*x-pi/6)==y,y==1/2],[x,y])
}}}
which returns [[x == 1/2*pi + pi*z5, y == (1/2)], [x == 1/6*pi + pi*z7, y
== (1/2)]]
But this is a very weird way to do things. Surely
solve([sin(2*x-pi/6)==y,y==1/2],[x,y]) should also give all roots.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8390>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.