First time here? Check out the FAQ!

Ask Your Question
0

What is the meaning of 3d graph?

asked 7 years ago

screened00 gravatar image

updated 7 years ago

kcrisman gravatar image

I read the reference manual. There I see only x,y. So how is the value of z decided? Example:

def f(x,y):
      return math.sin(y*y+x*x)/math.sqrt(x*x+y*y+.0001)

P = plot3d(f,(-3,3),(-3,3), adaptive=True, color=rainbow(60, 'rgbtuple'), max_bend=.1, max_depth=15)
P.show()

I also don't know how to paste the sage cell code, as only latex is the way here.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 7 years ago

ndomes gravatar image

The function f returns z values. That's all. Do not confuse with implicit_plot3d. There you normally use an expression containing x, y and z.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 315 times

Last updated: May 26 '17