︠06ba8380-3027-4575-8ee0-1ea52180de59i︠
%html
The first picture is of the solid formed by intersecting three cylinders; the second shows the solid along with the original cylinders. You can view these in 3D in a variety of ways. Right-click on the picture and go to style->stereographic and pick a method. Most people will find it easiest to use the cross-eyed method. If you haven't done this before, you may find this page useful: http://www.starosta.com/3dshowcase/ihelp.html
︡a5a7ff3b-c7e4-4116-aca0-42e258a0932e︡{"html": "\n
The first picture is of the solid formed by intersecting three cylinders; the second shows the solid along with the original cylinders. You can view these in 3D in a variety of ways. Right-click on the picture and go to style->stereographic and pick a method. Most people will find it easiest to use the cross-eyed method. If you haven't done this before, you may find this page useful: http://www.starosta.com/3dshowcase/ihelp.html
\n
"}︡
︠71480a3f-29d9-48fa-8c85-3eeb1bf71a4e︠
# Useful definitions
(x,y,u,t,a,b)=var("x y u t a b")
minimum(a,b)=((a+b)-abs(b-a))/2
x=cos(u); y=sin(u)
v=t*minimum(sqrt(1-x^2),sqrt(1-y^2))
︡978be8c2-1f6f-4048-82a8-f9cab81aa8f3︡︡
︠d6b8f22f-2127-43a5-ae8b-ff32f3de1cea︠
redsurf1=parametric_plot3d([x,v,y],(u,0,pi/2),(t,-1,1),color='red',aspect_ratio=(1,1,1),plot_points=(100,10))
redsurf2=parametric_plot3d([x,v,y],(u,pi/2,pi),(t,-1,1),color='red',aspect_ratio=(1,1,1),plot_points=(100,10))
redsurf3=parametric_plot3d([x,v,y],(u,pi,3*pi/2),(t,-1,1),color='red',aspect_ratio=(1,1,1),plot_points=(100,10))
redsurf4=parametric_plot3d([x,v,y],(u,3*pi/2,2*pi),(t,-1,1),color='red',aspect_ratio=(1,1,1),plot_points=(100,10))
bluesurf1=parametric_plot3d([x,y,v],(u,0,pi/2),(t,-1,1),color='blue',aspect_ratio=(1,1,1),plot_points=(100,10))
bluesurf2=parametric_plot3d([x,y,v],(u,pi/2,pi),(t,-1,1),color='blue',aspect_ratio=(1,1,1),plot_points=(100,10))
bluesurf3=parametric_plot3d([x,y,v],(u,pi,3*pi/2),(t,-1,1),color='blue',aspect_ratio=(1,1,1),plot_points=(100,10))
bluesurf4=parametric_plot3d([x,y,v],(u,3*pi/2,2*pi),(t,-1,1),color='blue',aspect_ratio=(1,1,1),plot_points=(100,10))
yellowsurf1=parametric_plot3d([v,x,y],(u,0,pi/2),(t,-1,1),color='yellow',aspect_ratio=(1,1,1),plot_points=(100,10))
yellowsurf2=parametric_plot3d([v,x,y],(u,pi/2,pi),(t,-1,1),color='yellow',aspect_ratio=(1,1,1),plot_points=(100,10))
yellowsurf3=parametric_plot3d([v,x,y],(u,pi,3*pi/2),(t,-1,1),color='yellow',aspect_ratio=(1,1,1),plot_points=(100,10))
yellowsurf4=parametric_plot3d([v,x,y],(u,3*pi/2,2*pi),(t,-1,1),color='yellow',aspect_ratio=(1,1,1),plot_points=(100,10))
︡e172b0f1-26a4-49cd-b81c-b8d3fe897301︡︡
︠3c8ea19c-961b-44bc-9c93-47b81d7bf47e︠
redsurf1+redsurf2+redsurf3+redsurf4+bluesurf1+bluesurf2+bluesurf3+bluesurf4+yellowsurf1+yellowsurf2+yellowsurf3+yellowsurf4
︡a565635e-e3a7-4ad4-bbae-9a20bd89429b︡︡
︠b37be6ff-b7ee-44cc-808a-d6ae2c6d112b︠
(u,v)=var("u v")
yellowcyl=parametric_plot3d([u,cos(v),sin(v)],(u,-1.5,1.5),(v,0,2*pi),color='yellow',opacity=0.1,plot_points=(100,100))
redcyl=parametric_plot3d([cos(v),u,sin(v)],(u,-1.5,1.5),(v,0,2*pi),color='red',opacity=0.1,plot_points=(100,100))
bluecyl=parametric_plot3d([cos(v),sin(v),u],(u,-1.5,1.5),(v,0,2*pi),color='blue',opacity=0.1,plot_points=(100,100))
︡b33fcb45-c35f-4255-84ed-4459a7d1c5fa︡︡
︠ce25c09b-f91c-4157-856a-ef789c421022︠
redsurf1+redsurf2+redsurf3+redsurf4+bluesurf1+bluesurf2+bluesurf3+bluesurf4+yellowsurf1+yellowsurf2+yellowsurf3+yellowsurf4+redcyl+bluecyl+yellowcyl
︡e8a048f1-49b4-4285-ad03-bc79319cf23e︡︡