The document contains Mathematica code that defines a function Y for spherical harmonics and evaluates some examples. It:
1) Defines a function Y that takes angular coordinates θ, φ and indices m, n as arguments and returns the corresponding spherical harmonic Y.
2) Evaluates Y for m=5, n=2, θ=t, φ=t2 and takes its numeric value.
3) Plots the 3D surface defined by 1 + 2Cos(2θ) over the ranges θ∈[0,π] and φ∈[0,2π].
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2K views423 pages
Untitled 1
The document contains Mathematica code that defines a function Y for spherical harmonics and evaluates some examples. It:
1) Defines a function Y that takes angular coordinates θ, φ and indices m, n as arguments and returns the corresponding spherical harmonic Y.
2) Evaluates Y for m=5, n=2, θ=t, φ=t2 and takes its numeric value.
3) Plots the 3D surface defined by 1 + 2Cos(2θ) over the ranges θ∈[0,π] and φ∈[0,2π].