12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

118 • Chapter 4: GraphicsCones are easy to plot in cylindrical coordinates: let r equal z and letθ vary from 0 to 2π.> cylinderplot( z, theta=0..2*Pi, z=0..1 );The cylinderplot command also accepts parametrized plots. Thesyntax is similar to that of parametrized plots in Cartesian (ordinary)coordinates. See this section, page 114.cylinderplot( [ r-expr, theta-expr, z-expr ],parameter1=range, parameter2=range )The following is a plot of r = st, θ = s, and z = cos(t 2 ).> cylinderplot( [s*t, s, cos(t^2)], s=0..Pi, t=-2..2 );Refining PlotsIf your plot is not as smooth or precise as you want, calculate more points.The option for doing this isgrid=[m, n]where m is the number of points to use for the first coordinate, and n isthe number of points to use for the second coordinate.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!