Ask Your Question
0

parametric plotting over regions bounded by two curves in the plane

asked 2011-10-08 07:08:35 -0500

ahausknecht gravatar image

Hi all,

Maple's parametric plot3d command allows the limits of the second of the two parameters to be functions of the first. For example, to plot the intersection of two circular cylinders enter

c1 := plot3d([cos(t), y, sin(t)], t = 0 .. 2*Pi, y = -sin(t) .. sin(t), color = green)
c2 := plot3d([cos(t), sin(t), z], t = 0 .. 2*Pi, z = -sin(t) .. sin(t), color = blue)
display(c1, c2)

This generates a plot of the intersection region with the portions of the cylinders extending beyond the region removed. Is it possible todo the same with Sage's plot3d commands?

Regards,

Adam Hausknecht

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-10-08 08:16:48 -0500

Jason Grout gravatar image

We have a "region" argument to implicit_plot3d that is something like that:

implicit_plot3d((x^2 + y^2 + z^2), (x, -2, 2), (y, -2, 2), (z, -2, 2), plot_points=60, contour=[1,3,5], region=lambda x,y,z: x<=0.2 or y>=0.2 or z<=0.2)

See http://www.sagemath.org/doc/reference... for more details. It would be great to add this sort of functionality to parametric plots.

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: 2011-10-08 07:08:35 -0500

Seen: 578 times

Last updated: Oct 08 '11