Question: Plotting Spherical Harmonics ERROR

Hi,

     Theres seems to be an error in the SphericalY function when the input is SphericalY( l, -l, theta, phi)

restart;

assume(phi, real):assume(theta, real):

for l from 1 to 2 do  
   m:=-l; 
   s:=SphericalY(l,m,theta, phi);
   f:=s*conjugate(s);
   plot3d(f, phi=0..2*Pi,theta=0..Pi,coords=spherical);#sphereplot(f, phi = 0 .. 2*Pi, theta = 0 ..Pi,  style =     patchnogrid, scaling = constrained, axes = boxed);
end do;

Did I do something wrong? or is there a mistake in the SphericalY function?

Please Wait...