Download MuPAD from SciFace

MuPAD Pro Computing Essentials - Examples 

Example 7.10 - Another example of a parametric surface

This another example of a surface given by parametric equations. The way of plotting it is essentially the same like in the previous example. However, shape of this surface is more interesting. 

export(plot, Surface3d):
  
h := (x,y,z) -> [abs(sin(x)),abs(sin(y)),abs(sin(z))]:
  
knot := Surface3d (
   [2*cos(2*u)*cos(u+v),2*cos(2*u)*sin(u+v),2*sin(2*v)],
   u=-PI..PI, v=-PI..PI,
   Grid = [50,50],
   Style = [ColorPatches, AndMesh],
   Color = [Function,h]
):
  
plot(
   knot,
   Scaling = Constrained,
   BackGround = [0.84,0.85,1],
   CameraPoint = [100,70,50],
   FocalPoint = [0,0,0]
)    

Note: the enclosed picture is Flash file about 160kb. Downloading it on slow networks can be quite time consuming. 

 

TOP