Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
0

3d plot syntax issue

asked 10 years ago

updated 10 years ago

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.

Preview: (hide)

Comments

1

Be careful, it should be

 var('x y')

and not

var(x' y')
vdelecroix gravatar imagevdelecroix ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 10 years ago

calc314 gravatar image

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

plot3d(x^2*y^2,(x,-2,2),(y,-2,2)).
Preview: (hide)
link

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 ( 10 years ago )

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: 10 years ago

Seen: 717 times

Last updated: Mar 16 '15