ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 11 Mar 2017 23:00:03 -0600Simplify trig expressions with the double angle formulahttp://ask.sagemath.org/question/35213/simplify-trig-expressions-with-the-double-angle-formula/ I am trying to simplify the following expression in sage:
(sqrt(3)/3*cos(x)+1/3*sin(x))
the resulting expression should be:
2/3*cos(pi/6-x)
.simplify_full(), trig_reduce(), or simplify_trig() cannot produce this simplification.
Is sage currently capable of doing this?rtcFri, 21 Oct 2016 10:45:00 -0500http://ask.sagemath.org/question/35213/How to get sage to simplify sin(pi/16)?http://ask.sagemath.org/question/36919/how-to-get-sage-to-simplify-sinpi16/I'm trying to look at numbers of the form sin(pi/2^n), but when I ask for a list of the first 10, I get [0,1, 1/2*sqrt(2), 1/2*sqrt(-sqrt(2) + 2), sin(1/16*pi), sin(1/32*pi)...]
Why are these not being reduced, even when I call sin(1/16*pi).simplify_full()? How can I make sage simplify them?Shamrock-FrostSat, 11 Mar 2017 23:00:03 -0600http://ask.sagemath.org/question/36919/Beginner: Plot sin 2x or 4cos 2xhttp://ask.sagemath.org/question/27305/beginner-plot-sin-2x-or-4cos-2x/Disclaimer: I'm a beginner with Sage.
I'm working with transformations and translations of trig functions, and although I can "plot(sin, (-2,2))" without trouble, how do I plot the following?
sin 2x
or
4cos 2x
or
3sin (x+5) -3
Thanks!mellow_yellowFri, 10 Jul 2015 07:08:32 -0500http://ask.sagemath.org/question/27305/working on part of an expressionhttp://ask.sagemath.org/question/26397/working-on-part-of-an-expression/ I came across a complicated expression containing cos(4*t). I wanted to change it to 1-sin(2*t)^2. The tools are
trig_reduce, trig_expand, and trig_simplify. One of them expresses everything in trig functions of t and the other
two are useless. And all three will work on the entire expression, not just on one part. So this is a very general
question: how can I get sage to do something to just one part of an expression, rather than the whole expression?
(I suppose I could extract the part, work on it, and then substitute the result back in, but that would be difficult!)
And even on a standalone basis, I don't know how to change cos(4*t) to 1-sin(2*t)^2.beesonTue, 31 Mar 2015 10:12:14 -0500http://ask.sagemath.org/question/26397/