Ask Your Question

3d plot syntax issue

asked 2015-03-16 19:41:08 +0100

updated 2015-03-16 19:48:31 +0100

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 22:22:15 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-16 19:50:21 +0100

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 20:02:22 +0100 )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 19:41:08 +0100

Seen: 331 times

Last updated: Mar 16 '15