# Why won't Maple graph this function?

## Main Question or Discussion Point

> f:=(x+(3*y)-1)*exp^(-(x^2(-(y^2));
> plot3d(f,x=-3..3,y=-3..3);

After this, Maple says it is initializing a plot and then I get a big blank space.

I'm also trying to find the contours, but when I type:

> contourplot(f,x=-3..3,y=-3..3,contours=5);

Maple just gives: contourplot(f,x=-3..3,y=-3..3,contours=5)

How can I fix these two things???

## Answers and Replies

Related MATLAB, Maple, Mathematica, LaTeX News on Phys.org
exp^ doesn't make any sense. Do you want

$e^{-x^2-y^2} \text{ or } e^{x^2 y^2}$?

if you want the first write
exp(-x^2-y^2);
if you want the second (which is more-or-less what you currently have in your expression) write
exp(x^2*y^2)

Edit: also your bracketing is very much off in your exponential function

Last edited:
cristo
Staff Emeritus