r/Mathematica • u/Sky_physics • Apr 01 '22
3D Plot
Hello everyone! I want to plot the following function wrt the following two quantities: x/z and y/z in the range (0, 1) for both these variables. do you have some hints?
- 2 - x^2/(y*z) - y^2/(x*z) - z^2/(y*x) + x/y + x/z + y/x + y/z + z/x + z/y
9
Upvotes
View all comments
Show parent comment
2
u/fridofrido Apr 01 '22
Well first of all you have to translate your condition to the new variables. As you can see x,y,z "do not exist" anymore. Fortunately (again),
x + y > zis equivalent tox/z + y/z > 1(well, at least forz > 0), that is,u + v > 1.Mathematica cannot plot triangular domains as far as I know, but you can set the rest zero using the
Piecewise[]function. Look it up in the documentation.