(*********************************************************************

	Copyright 1989 by Roman E. Maeder
	
	Adapted from
	Roman E. Maeder: Programming in Mathematica, Addison-Wesley, 1989.

	Permission is hereby granted to make copies of this file for
	any purpose other than direct profit, or as part of a
	commercial product, provided this copyright notice is left
	intact.  Sale, other than for the cost of media, is prohibited.
	
	Permission is hereby granted to reproduce part or all of
	this file, provided that the source is acknowledged.

 *********************************************************************)


Needs["RMPackages`NewParametricPlot3D`"]

(* rotated parabola *)

b042in3 := CylindricalPlot3D[ r^2, {r, 0, 1}, {phi, 0, 2Pi} ]

(* cut out degenerate torus *)

b042in5 := SphericalPlot3D[ Sin[theta]^2, {theta, 0, Pi}, {phi, 0, 3Pi/2} ]

(* hyperboloid *)

b050in6 := CylindricalPlot3D[ 1.5 Sqrt[1 + r^2], {r, 0, 2}, {phi, 0, 2Pi} ]

(* catenoid *)

b101in9 := ParametricPlot3D[ {Cosh[z] Cos[phi], Cosh[z] Sin[phi], z},
                             {z, -2, 2}, {phi, 0, 2Pi}, Boxed -> False ]

(* spherical harmonic Y[3, 1] *)

y31 = Abs[ N[SphericalHarmonicY[3, 1, theta, 0]] ]

b120in5 := SphericalPlot3D[ y31, {theta, 0, Pi, Pi/24}, {phi, 0, 2Pi} ]
