Ask Your Question
0

3d plot syntax issue

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

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

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

Comments

1

Be careful, it should be

 var('x y')

and not

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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:

plot3d(x^2*y^2,(x,-2,2),(y,-2,2)).
edit flag offensive delete link more

Comments

As a note, it ispossible to use this syntax with implicit multiplication - see e.g. http://math.stackexchange.com/a/11866...

kcrisman gravatar imagekcrisman ( 2015-03-16 20:02:22 +0200 )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

Stats

Asked: 2015-03-16 19:41:08 +0200

Seen: 355 times

Last updated: Mar 16 '15