Code like this should work if I recall correctly:
f[x_,y_] = -x^2/2 - y^2 + 25/8
Plot[f[x,y], {x,-10,10},{y,-10,10}, PlotRange->{-5,5}, AxesLabel->{"x","y"}]
Originally posted by: Brian M
Code like this should work if I recall correctly:
f[x_,y_] = -x^2/2 - y^2 + 25/8
Plot[f[x,y], {x,-10,10},{y,-10,10}, PlotRange->{-5,5}, AxesLabel->{"x","y"}]
It gives this error.
Plot::nonopt: Options expected (instead of {y, -10, 10}) beyond position 2 in
Plot[f[x, y], {x, -10, 10}, {y, -10, 10}, PlotRange -> {-5, 5}, AxesLabel ->
{x, y}]. An option must be a rule or a list of rules.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.