The program spherical is an example implementation of the
routine sw_spheroid() to compute the standard spin-weighted
spherical harmonics . The program also computes these
functions using equation (3.1) of  for comparison.
According to the normalization convention stated in
subsection , the relationship between the spin-weighted
spheroidal harmonics and the spin-weighted spherical harmonics is:
To invoke the program, type:
sphericalfor the desired (integer) values of , , and ( and ). The output is three columns of data: the first column is the independent variable between and , the second column is the value of , and the third column is the value of as computed from equation (3.1) of . A comparison of the results produced by the program spherical for with the exact values of is shown in table .