Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am trying to graph a trig function in WolframAlpha. I want the x axis to show radians. It will do this for a basic function, such as $y=\sin x$, but for many functions it will just label the x axis from -10 to 10. I have googled this and this is the best I can come up with:

plot sin (x/2 -pi/16) ,Ticks ->{{-pi, -pi/2, 0, pi/2, pi, 3pi/2, 2pi, 5pi/2},{-1,1}}

It doesn't work, WolframAlpha just plots the function from -10 to 10 on the x axis.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

For more sophisticated plots WolframAlpha is not the best option, I only use it for a first idea of the function. Never the less using Mathematica Syntax might help.

At least the PlotRange you can chose via

Plot[ Sin [x/2 - Pi/16], {x, -Pi, 5 Pi/2}]

which gives you this

If you have Mathematica you have a lot more options for Plots, using the command

Plot[ Sin [x/2 - Pi/16], {x, -Pi, 5 Pi/2}, 
    Ticks -> {{-Pi, -Pi/2, 0, Pi/2, Pi, 3 Pi/2, 2 Pi, 5 Pi/2}, {-1, 1}}]

gives you

enter image description here

share|improve this answer
    
is the same possible in "maxima"? –  Vikram Aug 25 '13 at 9:35
    
I don't konw maxima i am afraid –  Dominic Michaelis Aug 25 '13 at 9:42
    
Thanks for the tip about setting the Plot Range. I don't have access to Mathematica. It would be good to find a free piece of software that does allow me to specify the axes how I wish. –  mikoyan Aug 25 '13 at 15:46
1  
@mikoyan I guess there are tons of free software for this. Even $\LaTeX$ can do this if you use packages like TikZor others. –  Dominic Michaelis Aug 25 '13 at 15:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.