How do I plot parametric surfaces?

      I've searched quite extensively across the internet and cannot seem to find my answer, even on this forum or in maple help.

     I'm trying to plot parametric surfaces using the (u,v) notation or in other words

cos(v)i + sin(v)j + (u)k

so have tried in maple as such:

cylinder := (u,v) -> [cos(v), sin(v), u];

but when I plot3d that, I either get a z range problem, come up with only a plane, or get absolutly nothing (mind you, I don't have axis in mine right now, so I haven't checked to see if those would show up, i'm willing to bet yes).

My plot3d looks like:

plot3d( cylinder(u,v), u = 0..30, v = 0..2Pi);

which yields a blank graph. I've tried multiple variations and am unsure what I'm doing wrong. It should be said that I'm using maple 10 currently.

Any help is very much appreciated as this is the only part of a project I'm stumbling with.

Thanks

Erich

gkokovidis's picture

restart: x:=(u,v)->cos(v); y:

restart:

x:=(u,v)->cos(v);
y:=(u,v)->sin(v);
z:=(u,v)->u;

plot3d([x(u,v),y(u,v),z(u,v)],u = 0..30, v = 0..2*Pi,axes=boxed);

This will display a cylinder.  Is this what you want?

 

Regards,
Georgios Kokovidis
Dräger Medical


 

alec's picture

worked OK

The code in the original post worked OK for me after replacing 2Pi with 2*Pi.

Alec

I will have to update when i

I will have to update when i get back from work in a few hours, but if you are getting it to work that sounds spectacular, thanks for the help, I'll go try it as soon as I can.

Thanks!

It worked! Thanks for the quick help, it was a very quick fix! :D

 

Erich

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}