Ask Your Question
0

What is the meaning of 3d graph?

asked 2017-05-26 19:48:26 +0100

screened00 gravatar image

updated 2017-05-26 20:48:28 +0100

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-05-26 21:35:58 +0100

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.

edit flag offensive delete link more

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: 2017-05-26 19:48:26 +0100

Seen: 307 times

Last updated: May 26 '17