Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: --->What is the problem with 'ParametricPlot'?

  • To: mathgroup at
  • Subject: [mg4675] Re: --->What is the problem with 'ParametricPlot'?
  • From: ags at (Dave Seaman)
  • Date: Thu, 22 Aug 1996 03:55:25 -0400
  • Organization: Purdue University
  • Sender: owner-wri-mathgroup at

In article <4ve8rf$iro at>,
Seagull <whoami at> wrote:
>I input the followings:
>ParametricPlot[{x, y}, {t, 0, Pi/2}]
>And got the following outputs:

 [ ... messages deleted ... ]

>   x does not evaluate to a pair of real numbers at t = 0..

 [ ... messages deleted ... ]

>Can anyone tell me what is wrong?
>Thanks in advance!!

Your x and y should evaluate to one of two things for this example to work:

	1.  A real number,
	2.  A list consisting of a pair of real numbers.

In case (2) you would be plotting two separate curves in parametric
form on the same axis.  However, your x and y each evaluate to
something that matches neither (1) nor (2), namesly:

	3.  A list consisting of a single real number.

That's because the Power function (represented here by "^") is listable
and therefore x={Sin[t]}^3 sets x to {Sin[t]^3}, which is a one-element
list.  It should work much better if you remove the curly braces.

Mathematica notices that the value of x is not a real number (case (1))
and therefore assumes it must match case (2) -- but then the length of
the list turns out to be 1 instead of 2, hence the error message that x
"does not evaluate to a pair of real numbers...."

Dave Seaman			dseaman at
      ++++ stop the execution of Mumia Abu-Jamal ++++
    ++++ if you agree copy these lines to your sig ++++
++++ see ++++


  • Prev by Date: Re: If statement inside Do loop
  • Next by Date: Re: How to think about Map[ ] ?
  • Previous by thread: --->What is the problem with 'ParametricPlot'?
  • Next by thread: Re: --->What is the problem with 'ParametricPlot'?