Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.1K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to enter g(x, y) = f(3x ? y) into Mathematica for a contourplot?

Posted 12 years ago

For an assignment I need the contour of this function. It is a function within a function

POSTED BY: Frank Jones
3 Replies
POSTED BY: Udo Krause
Posted 12 years ago

Ok, I got a contourplot now. Thank you for that! But why did you use Exp[-x^2] for f[x]? Where do you get it from? You say that f is a function of one variable but it consists of x and y?

POSTED BY: Frank Jones
In[24]:= Clear[f, g]
f[x_] := Exp[-x^2]
g[x_, y_] := f[3 x - y]
ContourPlot[g[a, b], {a, -1, 1}, {b, -1/2, 1/2}]

does not work? Because f is a function of one variable, the contour plot is quasi-1D.

POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard