I'm trying to plot the following 3 functions:
- f1=x2+y−37=0
- f2=x−y2−5=0
- f3=x+y−3−z=0
Plot3D[{x^2 + y - 37, x - y^2 - 5, x + y + z - 3}, {x, -10, 10}, {y, -10, 10}, {z, -10, 10}]
but it gives me a error. How do I fix this? Also is there any way to show graphically where the 3 functions intersect, say with a red dot or something?
Thank you for the help in advance.
Answer
s = Solve[{x^2 + y - 37 == 0, x - y^2 - 5 == 0,
x + y + z - 3 == 0}];
Two solutions.
Show[ContourPlot3D[{x^2 + y - 37 == 0, x - y^2 - 5 == 0,
x + y + z - 3 == 0}, {x, -10, 10}, {y, -10, 10}, {z, -10, 10},
ContourStyle ->({#, Opacity[0.8]} &) /@ {Green, Yellow, Orange}],
Graphics3D[{Red, Sphere[{x, y, z} /. s[[#]]] & /@ {1, 2}}]]
Comments
Post a Comment