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.Tue, 23 Mar 2021 17:17:18 +0100csc plotting helphttps://ask.sagemath.org/question/56334/csc-plotting-help/Hello,
I'm new to SAGE and am having trouble plotting a cosecant (csc) curve.
Here is my input:
plot(csc(x), (x,-3*pi, 3 * pi))
but the output doesn't show the curves approaching the asymptotes as I would expect.
What do folks think about this?
Thanks for the help!
-mattmzagrabeTue, 23 Mar 2021 17:17:18 +0100https://ask.sagemath.org/question/56334/Simplify trig expressions with the double angle formulahttps://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 17:45:00 +0200https://ask.sagemath.org/question/35213/How to get sage to simplify sin(pi/16)?https://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-FrostSun, 12 Mar 2017 06:00:03 +0100https://ask.sagemath.org/question/36919/Beginner: Plot sin 2x or 4cos 2xhttps://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 14:08:32 +0200https://ask.sagemath.org/question/27305/working on part of an expressionhttps://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 17:12:14 +0200https://ask.sagemath.org/question/26397/