Plot 3D Intersection of x+y+z=1 & x^2+y^2+z^2=1 - Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter amcavoy
  • Start date Start date
  • Tags Tags
    Graphing Mathematica
Click For Summary

Discussion Overview

The discussion revolves around how to plot the intersection of the equations x+y+z=1 and x²+y²+z²=1 using Mathematica's Plot3D command. The focus is on technical approaches and methods for visualizing these mathematical functions in a 3D space.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant inquires about plotting two functions simultaneously in Mathematica to visualize their intersection.
  • Another participant shares a method involving the use of the Plot and Show commands to combine multiple plots, although they express uncertainty about their expertise in Mathematica.
  • A third participant suggests a specific Plot3D command that may work for visualizing one of the functions, while also noting their preference for Matlab over Mathematica.
  • A later reply indicates that the provided suggestions were helpful for the original poster.

Areas of Agreement / Disagreement

Participants generally agree on the methods to plot functions in Mathematica, but there is no consensus on the best approach, as different methods are suggested without a definitive resolution.

amcavoy
Messages
663
Reaction score
0
If I am using the Plot3D command in Mathematica, how can I plot two separate functions on the same coordinates? Specifically, I am trying to get a picture of the intersection of x+y+z=1$ with x^{2}+y^{2}+z^{2}=1.
 
Physics news on Phys.org
I suck at mathematica and probably won't help too much, but when I plot many functions or equations I do,
string = Plot[xxxxxxxxxxxxxxxxxxx, DisplayFunction -> Identity]
string2 = Plot[xxxxxxxxxxxxxxxxxxx, DisplayFunction -> Identity]
...
...
...
Show[{string, string2,...}, DisplayFunction -> $DisplayFunction]

It works for both plots2d and 3d in my mathematica. I dunno.
 
Plot3D[{1-x-y},{(1-x^2-y^2)^0.5},{x,-10,10},{y,-10,10}]

Should work, I think...

(Although I use Mathematica rarely - Matlab always :-p )
 
Those worked, thanks a lot guys :smile:.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K