Ask Your Question
0

parametric plotting over regions bounded by two curves in the plane

asked 13 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 13 years ago

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.

Preview: (hide)
link

Comments

You can now use "add_condition" on any surface object.

FrédéricC gravatar imageFrédéricC ( 4 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

1 follower

Stats

Asked: 13 years ago

Seen: 1,046 times

Last updated: Oct 08 '11