Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

Plotting an inequality in 3D region

asked 8 years ago

DBS gravatar image

updated 8 years ago

calc314 gravatar image

Ideally I would like to plot a region in 3D space which is defined by a bunch of inequalities. For example let us consider the region R defined by (x,y,z):x0 and y0 and x+yz.

I am wondering what would be an easier way to do it.

With my limited knowledge I came up with these two approaches.

Approach 1 : Generate points in this region and plot them in 3D. Is there a way to extend the function in region_plot () that generates plot points for my needs?

Approach 2 : Concatenate implicit -3D plots of functions of the form x+y(z+t), where t is a small positive parameter, for different values of t. Then plot all these simultaneously.

I would appreciate any alternate way to do this or any improvements on these approaches.
Thank you for your time in advance.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 8 years ago

calc314 gravatar image

I'm not aware of an easy way to do this. But, here is one idea:

var('x y z')
p=implicit_plot3d(x+y==z,(x,-4,0),(y,-4,0),(z,-10,0))
p+=polygon3d([(-4,0,-4),(0,0,0),(-4,0,0) ])
p+=polygon3d([(0,-4,-4),(0,0,0),(0,-4,0) ])
p+=polygon3d([(-4,0,-4),(-4,-4,-8),(-4,0,0),(-4,-4,0) ])
p+=polygon3d([(0,-4,-4),(-4,-4,-8),(0,-4,0) ,(-4,-4,0) ])
p
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: 8 years ago

Seen: 1,133 times

Last updated: May 02 '16