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.

116 • Chapter 4: GraphicsPlotting a sphere in spherical coordinates is easy: specify the radius,perhaps 1, let θ run all the way around the equator, and let φ run fromthe North Pole (φ = 0) to the South Pole (φ = π).> sphereplot( 1, theta=0..2*Pi, phi=0..Pi,> scaling=constrained );(For more information on constrained versus unconstrained plotting,see section 4.1.)The sphereplot command also accepts parametrized plots, that is,functions that define the radius and both angle-coordinates in terms of twoparameters, for example, s and t. The syntax is similar to a parametrizedplot in Cartesian (ordinary) coordinates. See this section, page 114.sphereplot( [ r-expr, theta-expr, phi-expr ],parameter1=range, parameter2=range )Here r = exp(s) + t, θ = cos(s + t), and φ = t 2 .> sphereplot( [ exp(s)+t, cos(s+t), t^2 ],> s=0..2*Pi, t=-2..2 );

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

Saved successfully!

Ooh no, something went wrong!