- #1

- 18

- 0

## Main Question or Discussion Point

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?

- Thread starter MAins
- Start date

- #1

- 18

- 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?

- #2

benorin

Homework Helper

- 1,094

- 14

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);
```

- Last Post

- Replies
- 5

- Views
- 9K

- Last Post

- Replies
- 4

- Views
- 3K

- Replies
- 2

- Views
- 1K

- Last Post

- Replies
- 2

- Views
- 2K

- Last Post

- Replies
- 2

- Views
- 8K

- Last Post

- Replies
- 1

- Views
- 2K

- Last Post

- Replies
- 0

- Views
- 3K