Group Abstract Group Abstract

Message Boards Message Boards

0
|
4K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

ParametricPlot of defined functions gives empty plot?

Posted 4 years ago

Hi, there! Can you please help me with a problem. I really don't understand why this doesn't work... When I create some function and then input it into my ParametricPlot, it doesn't work, but when I input the expressions explicitly, it works. The screenshots are applied below.

enter image description here

enter image description here

POSTED BY: Aleksandr Miller
2 Replies
Posted 4 years ago

From your screenshot it appears that the functions parX[t_] and parY[t_] returns a List enclosing an expression in t. Not the "raw" expression itself. This does not work with ParametricPlot.

Compare:

ParametricPlot[{{Cos@t}, {Sin@t}}, {t, 0, 2 \[Pi]}]

Produces an empty plot

ParametricPlot[{Cos@t, Sin@t}, {t, 0, 2 \[Pi]}]

Plots a circle as expected

So, take away the enclosing curly brackets in the function definitions.

POSTED BY: Hans Milton
Posted 4 years ago

Please post code, not images.

Try ClearAll[parX, parY, parZ] and then redefine them using := (SetDelayed) rather than = (Set).

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard