ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 15 Aug 2016 15:18:47 +0200Solving a trigonometric equationhttps://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/ How to solve a trigonometric equation like
2*(1-sin(x)) == 1-cos(x)
I've tried all possible commands in sage, I couldn't obtain any value while the geogebra's algebra system solves it very well for instance. Yet I don't think sage is less powerful than geogebra to solve equations...
Thx for answers.Fri, 12 Aug 2016 19:48:56 +0200https://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/Answer by kcrisman for <p>How to solve a trigonometric equation like
2*(1-sin(x)) == 1-cos(x)</p>
<p>I've tried all possible commands in sage, I couldn't obtain any value while the geogebra's algebra system solves it very well for instance. Yet I don't think sage is less powerful than geogebra to solve equations...</p>
<p>Thx for answers.</p>
https://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/?answer=34450#post-id-34450[In the documentation for](http://doc.sagemath.org/html/en/reference/calculus/sage/symbolic/expression.html#sage.symbolic.expression.Expression.solve) `solve` there is an option which often helps solve these kinds of equations.
F = 2*(1-sin(x)) == 1-cos(x)
solve(F,x,to_poly_solve=True)
You should get something like
[x == pi + 2*pi*z38, x == 2*pi*z40 + arctan(4/3)]
where the `z38` means an integer parameter.Fri, 12 Aug 2016 20:23:26 +0200https://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/?answer=34450#post-id-34450Comment by Romuald_314 for <p><a href="http://doc.sagemath.org/html/en/reference/calculus/sage/symbolic/expression.html#sage.symbolic.expression.Expression.solve">In the documentation for</a> <code>solve</code> there is an option which often helps solve these kinds of equations.</p>
<pre><code>F = 2*(1-sin(x)) == 1-cos(x)
solve(F,x,to_poly_solve=True)
</code></pre>
<p>You should get something like</p>
<pre><code>[x == pi + 2*pi*z38, x == 2*pi*z40 + arctan(4/3)]
</code></pre>
<p>where the <code>z38</code> means an integer parameter.</p>
https://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/?comment=34451#post-id-34451thank you!Fri, 12 Aug 2016 20:31:33 +0200https://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/?comment=34451#post-id-34451Comment by kcrisman for <p><a href="http://doc.sagemath.org/html/en/reference/calculus/sage/symbolic/expression.html#sage.symbolic.expression.Expression.solve">In the documentation for</a> <code>solve</code> there is an option which often helps solve these kinds of equations.</p>
<pre><code>F = 2*(1-sin(x)) == 1-cos(x)
solve(F,x,to_poly_solve=True)
</code></pre>
<p>You should get something like</p>
<pre><code>[x == pi + 2*pi*z38, x == 2*pi*z40 + arctan(4/3)]
</code></pre>
<p>where the <code>z38</code> means an integer parameter.</p>
https://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/?comment=34483#post-id-34483Great! If this solved your issue, you should click the check mark so that others coming to the question will immediately see it has been answered.Mon, 15 Aug 2016 15:18:47 +0200https://ask.sagemath.org/question/34449/solving-a-trigonometric-equation/?comment=34483#post-id-34483