Many commands in Mathematica come with options. They are of the form: Option -> {Chosen value for the option}. In classes I was looking for an option to label axes. It is of the form
AxesLabel -> {"lable1", "label2", "label3"}. Here is an example:
![[Graphics:Images/plot3d_gr_1.gif]](Images/plot3d_gr_1.gif)
Of course, I could have chosen any lables instead of x, y, z. Here is an option which will change the proportions of the box in which the graph is viewed:
![[Graphics:Images/plot3d_gr_4.gif]](Images/plot3d_gr_4.gif)
Instead of having to re write a function, you cna define it once and for all. Make sure to not forget to put the underscore after the variables INSIDE the function. You only do that ONCE, when you define the function. It tells Mathematica that these letters are to be treated as variables:
![[Graphics:Images/plot3d_gr_7.gif]](Images/plot3d_gr_7.gif)
You can then perform on f any operation you'd do by hand:
![[Graphics:Images/plot3d_gr_9.gif]](Images/plot3d_gr_9.gif)
If you want a numerical value, use the N commmand:
![[Graphics:Images/plot3d_gr_11.gif]](Images/plot3d_gr_11.gif)
You can graph f as before:
![[Graphics:Images/plot3d_gr_13.gif]](Images/plot3d_gr_13.gif)
Finally, you can show several graphs together:
![[Graphics:Images/plot3d_gr_16.gif]](Images/plot3d_gr_16.gif)
Note the very important trick here: I have used two previous outputs (2 and 10) by using the % sign. You can always do that in many situations with mathematica. For instance, If I want to square f(2, π), I can refer to Output 6, where I computed f(2, π):
![[Graphics:Images/plot3d_gr_19.gif]](Images/plot3d_gr_19.gif)
![[Graphics:Images/plot3d_gr_21.gif]](Images/plot3d_gr_21.gif)
![[Graphics:Images/plot3d_gr_23.gif]](Images/plot3d_gr_23.gif)
![[Graphics:Images/plot3d_gr_25.gif]](Images/plot3d_gr_25.gif)
A last point about graphics: you ccan change the point from which the graph is seen with the ViewPoint option. The best way to do that is to go to the "Input" menu and select 3D Viewpoint selector. You can then orient the little box, and click paste when you like its orientation. That will paste something like ViewPoint -> {2.3, 3.45, -2.221} wherever your cursor is on the notebook.
![[Graphics:Images/plot3d_gr_27.gif]](Images/plot3d_gr_27.gif)
Don't forget the comma before ViewPoint!