#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: |
---------------------------+------------------------------------------------
Comment(by robert.marik):
temporary patch:
{{{
diff -r 799f70320d89 sage/symbolic/expression.pyx
--- a/sage/symbolic/expression.pyx Thu Feb 11 09:03:17 2010 -0800
+++ b/sage/symbolic/expression.pyx Sun Feb 28 16:16:33 2010 +0100
@@ -6501,7 +6501,7 @@
# solutions being returned. #
########################################################
if to_poly_solve and not multiplicities:
- if len(X)==0: # if Maxima's solve gave no solutions, only try
it
+ if len(X)==0 or to_poly_solve == 'force': # if Maxima's solve
gave no solutions, only try it
try:
s = m.to_poly_solve(x)
T = string_to_list_of_solutions(repr(s))
}}}
allows this
{{{
[ma...@taxus ../sage-4.3.3.alpha0]$ ./sage
----------------------------------------------------------------------
| Sage Version 4.3.3.alpha0, Release Date: 2010-02-11 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage: solve(sin(x)==1/2,x)
[x == 1/6*pi]
sage: solve(sin(x)==1/2,x,to_poly_solve = 'force')
[x == 5/6*pi + 2*pi*z8, x == 1/6*pi + 2*pi*z6]
sage:
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8390#comment:4>
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.