Plot the plane x+z=0 in mathematica

  • Thread starter nameVoid
  • Start date
  • #1
nameVoid
241
0
How do I plot the plane x+z=0 in mathematica on the xyz plane
 

Answers and Replies

  • #2
DrClaude
Mentor
7,797
4,334
If you have Mathematica 9, just try
Code:
= plot x+z=0 plane
(don't forget to start with an equal sign).
 
  • #3
nameVoid
241
0
This is not correct tag plus in plot x+z is protected
 
  • #4
berkeman
Mentor
62,840
13,714
This is not correct tag plus in plot x+z is protected

What version of Mathematica do you have? Student version or Full version?
 
  • #5
vanhees71
Science Advisor
Insights Author
Gold Member
2021 Award
20,701
11,534
I'd suggest to use ParametricPlot3D (see attachement). The Student and full version of Mathematica are usually the same in function. I've the home edition of Mathematica 9 on my private laptop and it's absolutely identical with the full version on our institute's computers.
 

Attachments

  • parametric-plot-example.png
    parametric-plot-example.png
    37.1 KB · Views: 456
  • #6
nameVoid
241
0
Again how to plot x+z=0 in mathematica
 
  • #7
Bill Simpson
1,070
30
In Mathematica, any version, Plot3D wants an expression or function giving z values as a function of x and y coordinates so... turn x+z==0 into x==-z into -(x+0*y)==z (or just plot -x) and now you have a function giving z values to plot.

In[1]:= Plot3D[-(x + 0*y) (*==z*), {x, -3, 3}, {y, -4, 4}]
Out[1]= ...PlotSnipped...

Carefully check some points on the surface to verify this is correct.
And, if you don't already know... this ---> (*==z*) <--- is a comment in Mathematica code.
 
  • #8
nameVoid
241
0
Thank you
 

Suggested for: Plot the plane x+z=0 in mathematica

Replies
1
Views
1K
  • Last Post
Replies
1
Views
2K
Replies
1
Views
2K
Replies
3
Views
11K
  • Last Post
Replies
1
Views
1K
Replies
1
Views
10K
Replies
2
Views
2K
Replies
4
Views
2K
  • Last Post
Replies
2
Views
2K
Replies
2
Views
789
Top