• Congratulations to the Class of 2024 on your results!
    Let us know how you went here
    Got a question about your uni preferences? Ask us here

Help with Maple 8 (1 Viewer)

F

Fruitcake05

Guest
Hey guys, just got Maple 8, just need some help. Im trying to graph of the trigonometric rations (sinx, cosx etc.) and dont understand.

I got this bit ok

plot( sin(x), x=-4..4, y=-4..4, discont=true, title="y = sin(x)" );

I want to make the x axis go to 360degrees, but no idea how to. Any help is greatly appreciated.
 

wogboy

Terminator
Joined
Sep 2, 2002
Messages
653
Location
Sydney
Gender
Male
HSC
2002
If you want the x-axis to go from 0 to 360 degrees, change the x=-4..4 into x=0..2*Pi. Also the restriction on y you've used (y=-4..4) is useless, since this covers the range of the function y = sinx, so you might as well leave it out. Also there's no need for the discont=true in the command, since sin(x) is a continuous function. When plotting a discontinous function, then discont=true should be used. Your final command should look something like this:

plot( sin(x), x=-4..4, title="y = sin(x)" );
 
F

Fruitcake05

Guest
I can get the x axis into 1, 2, 3, and 4, but i want to get it to 90º, 180º, 270º and 360º.
 

Templar

P vs NP
Joined
Aug 11, 2004
Messages
1,979
Gender
Male
HSC
2004
Fruitcake05 said:
I can get the x axis into 1, 2, 3, and 4, but i want to get it to 90º, 180º, 270º and 360º.
plot( sin(Pi*x/180), x=0..360, title="y = sin(x)" );

Should get used to dealing with radians though.
 
F

Fruitcake05

Guest
Thanks both of you guys, really saved me a lotta stress there.

And btw what is a radian? I dont think we have learnt that yet?
 

nick1048

Mè çHöP ŸèW
Joined
Apr 29, 2004
Messages
1,613
Location
The Mat®ix Ordinates: Sector 1-337- Statu
Gender
Male
HSC
2005
radians are representations of degrees. The conversion statement is pi = 180. where pi represents radians.

i.e. pi = 180
pi/2 = 90
pi/3 = 60
pi/6 = 30
pi/12 = 15

You need to use these for all calculus studies, your posting in the 4u section and you don't noe radians??? Are you new?
 
F

Fruitcake05

Guest
Well yeah im sorta new, but i dont know radians (well i do now) because Im in yr 11. I only posted in the Ext 2 forum because Id get more replys here.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top