Message Boards Message Boards

0
|
5891 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Manipulate and ParametricPlot3D incomplete syntax error

Posted 11 years ago
I've tried to make a torus such that I can vary the parameters, the code I've typed was:                              
Manipulate[
ParametricPlot3D[{(2 + Cos[s]) Cos[t], (2 + Cos[s]) Sin[t], Sin[s]},
  {t, 0, tRange}, {s, 0, sRange}, PlotRange -> {{-3, 3}, {-3, 3}, {-1, 1}}],
{tRange, 0.1, 2 Pi}, {sRange, 0.1, 2 Pi}]

but it didn't work...I would be grateful for some help...Thank you!

POSTED BY: teo ytriu
Manipulate[
ParametricPlot3D[{(2 + Cos[t]) Cos[t], (2 + Cos[t]) Sin[t],
   Sin[t]}, {t, 0, tRange}, {s, 0, sRange},
  PlotRange -> {{-3, 3}, {-3, 3}, {-1, 1}}],
{{tRange, Pi, "tRange"}, 0.1, 2 Pi, .1, Appearance -> "Labeled"},
{{sRange, Pi, "sRange"}, 0.1, 2 Pi, .1, Appearance -> "Labeled"}]
POSTED BY: Nasser M. Abbasi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract