Processing math: 100%
Ask Your Question
1

how do i plot 3d planes like x=1

asked 10 years ago

fredsmith999 gravatar image

updated 10 years ago

vdelecroix gravatar image

I plotted z=x^2+y^2 and would like to add some planes to the diagram. How do i plot x=1?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

tmonteil gravatar image

updated 10 years ago

Plots are objects that can be added, so you can first create the plot of your function:

sage: F = plot3d(lambda x,y: x^2+y^2, [-2,2], [-2,2])

Then the plot of the plane x=1

sage: P = implicit_plot3d(lambda x,y,z: x-1, (-2,2), (-2,2), (-2,8))

Then you can add them on a common plot:

sage: F+P
Preview: (hide)
link

Comments

thanks a lot, didn't know could use lambda to pass functions in sage (completely new to this package)

fredsmith999 gravatar imagefredsmith999 ( 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: 3,007 times

Last updated: Mar 08 '15