Ask Your Question

3d plot syntax issue

asked 2015-03-16 13:41:08 -0500

updated 2015-03-16 13:48:31 -0500

calc314 gravatar image

I try this in Sage 5.11 Notebook:

var (x' y') 
plot3d(x^2 y^2,(x,-2,2),(y-3,3))

But I got syntax error. I typed the figures correctly, but I don't know how to solve the syntax error.

edit retag flag offensive close merge delete



Be careful, it should be

 var('x y')

and not

var(x' y')
vdelecroix gravatar imagevdelecroix ( 2015-03-16 16:22:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-16 13:50:21 -0500

calc314 gravatar image

The issue is with x^2 y^2. You need to tell sage the operation between $x^2$ and $y^2$. Is your function $x^2\cdot y^2$? If so, you need:

edit flag offensive delete link more


As a note, it ispossible to use this syntax with implicit multiplication - see e.g.

kcrisman gravatar imagekcrisman ( 2015-03-16 14:02:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-03-16 13:41:08 -0500

Seen: 36 times

Last updated: Mar 16 '15