Maple Using Maple 11 for calculus problems

  • Thread starter Thread starter MAins
  • Start date Start date
  • Tags Tags
    Calculus Maple
Click For Summary
To plot the surface of the function f(x,y) = x / sqrt(1 + x^2 + y^2) over the range -2 ≤ x, y ≤ 2, the commands used are "plot3d(f(x,y), x=-2..2, y=-2..2)" in a suitable plotting software. To create contour plots for the same function within the same range, the command "contourplot(f(x,y), x=-2..2, y=-2..2, contours=25)" is utilized. This approach effectively visualizes both the 3D surface and the contour lines of the function.
MAins
Messages
17
Reaction score
0
For a function f(x,y) what commands do I use to plot the coresponding surface from, say, -2 </= x, y </= 2? How would I then plot contours?
 
Physics news on Phys.org
For the example I have chosen f(x,y)=\frac{x}{\sqrt{1+x^2+y^2}}.

Code:
restart;
with(plots);
f:=(x,y)->x/(1+x^2+y^2)^(1/2);
plot3d(f(x,y),x=-2..2,y=-2..2);
contourplot(f(x,y),x=-2..2,y=-2..2,contours=25);
 

Similar threads

Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K