next up previous
Up: Back to the Chemistry 3730 assignment index

Chemistry 3730 assignment 7 solutions

We begin by reading in the necessary libraries and defining the associated Legendre functions.


> with(share): readshare(orbitals,science): with(orbitals):
See ?share and ?share,contents for information about the share library
> P := (l,m,theta) ->
  simplify(ComplexSurfaceHarmonic(l,m,theta,phi)/exp(I*m*phi));

displaymath89



Next, plot the function for tex2html_wrap_inline91 and m=0:


> plot([abs(P(3,0,theta)),theta,theta=0..2*Pi],
  coords=polar,scaling=constrained);
tex2html_wrap107

For tex2html_wrap_inline91 and |m|=1,


> plot([abs(P(3,1,theta)),theta,theta=0..2*Pi],
  coords=polar,scaling=constrained);
tex2html_wrap109

For tex2html_wrap_inline91 and |m|=2,


> plot([abs(P(3,2,theta)),theta,theta=0..2*Pi],
  coords=polar,scaling=constrained);}{%
tex2html_wrap111

Finally, for tex2html_wrap_inline91 and |m|=3,


> plot([abs(P(3,3,theta)),theta,theta=0..2*Pi],
  coords=polar,scaling=constrained);
tex2html_wrap113



Marc Roussel
Wed Oct 22 13:35:04 MDT 1997