MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ParametricPlot3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61735] Re: ParametricPlot3D
  • From: albert <awnl at arcor.de>
  • Date: Thu, 27 Oct 2005 05:54:29 -0400 (EDT)
  • References: <200510250528.BAA23561@smc.vnet.net> <djn3ri$iol$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Maurits,

> If however I first define my functions and then try to plot:
> ToPlot = {{Cos[f] Sin[t], Sin[t] Sin[f], Cos[t]}, {Cos[f] Sin[t] + 1,
> Sin[t] Sin[f], Cos[t]}};
> ParametricPlot3D[ToPlot, {t, 0, 3.1415}, {f, 0, 2 3.1415}];
> I get the error:
> ParametricPlot3D::ppfun : Argument ToPlot is not a list with three or four
> elements. More.

ParametricPlot3D has Attribute HoldAll, so it will not evaluate ToPlot. You
need to explicitly tell Mathematica to evaluate it anyway, e.g.:

ParametricPlot3D[Evaluate[ToPlot],{t, 0, 3.1415}, {f, 0, 2 3.1415}];

should do what you want.

hth

albert


  • Prev by Date: Re: Set construction with condition
  • Next by Date: Re: ParametricPlot3D
  • Previous by thread: Re: ParametricPlot3D
  • Next by thread: Re: ParametricPlot3D