MuPAD Pro Computing Essentials, 2nd Edition

Example 8.11 Class Cylindrical

This is example where I show the use of the class Cylindrical and I show how to plot a surface in cylindrical coordinates. Due to very high complexity of the surface I show here only picture created by MuPAD. I do not enclose the JavaView model. Creating this picture took me a lot of time. We can produce results faster if we remove Submesh parameter and change Mesh to smaller values. However, the quality of the picture will be much worse.
 

h := (x,y,z)->[abs(sin(x*y)),abs(sin(y*z)),abs(sin(z*x))]:
 
Tower := plot::Cylindrical(
   [2*sin(u^2*v), u, v], u = -PI..PI, v = 0..5,
   Submesh = [2,2], Mesh = [100,100],
   FillColorFunction = h
):
 
MyCam := plot::Camera([5,-30,10], [0,0,2.6], PI/18):
 
plot(
   Tower, MyCam,
   Axes = None
)

 

© Miroslaw Majewski, Abu Dhabi,  Update  08-11-2004