Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Graphing in Mathematica

  1. May 15, 2006 #1
    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 [itex]x+y+z=1$[/itex] with [itex]x^{2}+y^{2}+z^{2}=1[/itex].
     
  2. jcsd
  3. May 15, 2006 #2
    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.
     
  4. May 16, 2006 #3

    J77

    User Avatar

    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 :tongue: )
     
  5. May 23, 2006 #4
    Those worked, thanks a lot guys :smile:.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Graphing in Mathematica
Loading...