Understanding ParametricPlot in Mathematica: Deciphering Parameters and Ranges

  • Thread starter Thread starter flyingpig
  • Start date Start date
  • Tags Tags
    Parametric Plot
Click For Summary

Discussion Overview

The discussion revolves around using the ParametricPlot function in Mathematica to plot specific equations and understand the parameters and ranges involved. Participants are exploring how to correctly represent linear equations, particularly vertical lines and the relationship between x and y in parametric form.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant attempts to plot the equation y = 4 - x using parametric equations but notes that the range of t values only expands the y-values.
  • Another participant points out that the parametric plot as described would only yield two points, (6, -2) and (0, 4), questioning if that was the intended outcome.
  • One participant clarifies the goal is to plot two vertical lines at x = 6 and x = 0, suggesting that a parametric plot may not be the appropriate method for this task.
  • A suggestion is made to use a different parametric plot format to include vertical lines, but it is met with skepticism regarding the appropriateness of using parametric equations for vertical lines.
  • Another participant requests clarification on the parameters used in the ParametricPlot function, seeking to understand their meanings and roles.

Areas of Agreement / Disagreement

Participants express disagreement on the correct approach to plotting the desired lines, with some advocating for parametric plots while others argue that a different method is more suitable. The discussion remains unresolved regarding the best way to represent the equations in Mathematica.

Contextual Notes

There are limitations in understanding the intended graphical representation, as participants have different interpretations of how to apply parametric equations to vertical lines and the specific requirements of the plot.

flyingpig
Messages
2,574
Reaction score
1

Homework Statement



On Mathematica.

Let's say I want to plot

y = 4 - x

x = 6, x = 0

So a parametric equation would be

y = 4 - t

x = t

So I tried ParametricPlot[{y = 4 -t, x = t},{t,0,6}]

But the range (the t values) aer only expanding the y-values.
 
Physics news on Phys.org
flyingpig said:

Homework Statement



On Mathematica.

Let's say I want to plot

y = 4 - x

x = 6, x = 0
As you show it here, the parametric plot would consist of two points: (6, -2) and (0, 4). Is that what you had in mind?
flyingpig said:
So a parametric equation would be

y = 4 - t

x = t

So I tried ParametricPlot[{y = 4 -t, x = t},{t,0,6}]

But the range (the t values) aer only expanding the y-values.
 
No I want to plot the line x = 6 and x = 0, two vertical lines.
 
I think this is what you want

ParametricPlot[{{4 - t, t}, {4, t}, {6, t}}, {t, -6, 6}]
 
flyingpig said:
No I want to plot the line x = 6 and x = 0, two vertical lines.
In that case, I don't think you want to do a parametric plot. What you want to plot are three lines: y = 4 - x, x = 0, and x = 6. For a set of parametric equations, you would have x as a function of the parameter, and y as another (or possibly the same)function of the same parameter, and the graph would be the set of (x, y) values.

It's possible I'm not understanding what you're trying to do.
 
To plot x=6

ParametricPlot[{6, t}, {t, -10, 10}, PlotRange -> 10]
 
can you tell me each of the parameters within the code? Like what do they mean?

ParametricPlot[f...,{range}]...?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
2K
Replies
0
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K