Maple help!

ga14

Member
Nov 17, 2002
42
0
0
Hi Guys,

I'm trying to use Maple and am not very good with it. I need to construct a plot of a right circular cone with equation x^2+y^2=z^2. I need to show the intersection of the cone with 5 different planes to show how 5 different conic sections are formed. Conic sections, as a reminder, are things like a hyperbola, ellipse, parabola, circle, or line.

Does anyone know the Maple syntax to produce these 5 graphs? Thanks a million!
 
Aug 5, 2003
136
0
0
often times the best way to do stuff with maple is to look at the help file and replicate their examples. the command you're looking for is plot3d and it can be found in the glossary under Graphics - > 3-D - > plot3d (at least in the maple 7 help file).

it appears that the sort of syntax you want to follow is first defining your cone and 5 planes (bear with my attempt to recreate the maple command environment):

>cone:= sqrt(x^2 + y^2);
>plane1:=
>plane2:=
>plane3:=
>plane4:=
>plane5:=
>plot3d({cone,plane1,plane2,plane3,plane4,plane5},x=a..b, y=c..d);

you, of course, pick the a,b,c, and d, as well as the equations for each of the planes. note that i made your equation for the cone an equation of z (not z^2). you'll have to do the same for each plane equation, but that shouldn't be hard.

best of luck!
 

sgtroyer

Member
Feb 14, 2000
94
0
0
What does it look like? Note that plotting sqrt(x^2+y^2) will only produce the positive cone (the one on top). If you want both cones, you'll need to plot -sqrt(x^2+y^2) as well.
 
Aug 5, 2003
136
0
0
Originally posted by: sgtroyer
What does it look like? Note that plotting sqrt(x^2+y^2) will only produce the positive cone (the one on top). If you want both cones, you'll need to plot -sqrt(x^2+y^2) as well.

yeah, it doesn't look like a cone, even if you add the other half of the sqrt. you can get maple to make a cone manually through the cone command (Glossary - > Graphics - > Packages - > Plot Tools - > cone).
 

uart

Member
May 26, 2000
174
0
0
yeah, it doesn't look like a cone,

The main reason why it doesn't look quite right when you do a simple plot like :

"z:=sqrt(x^2 + y^2);
plot3d(z,x=-1..1,y=-1..1);"

is because of the rectangular boundary conditions.

Use cylindrical boundary conditions like :

"plot3d(z,x=-1..1,y=-sqrt(1-x^2)..sqrt(1-x^2));"

and it looks a lot better. Try it and see. :)