You are on page 1of 3

Spheroidal Wave Functions

Installation Note
To make use of the package SpheroidF.m in Mathematica Ver 3.01, user has to crea
te a folder inside the folder C:/.../Wolfram Research/Mathematica/3.0/AddOns/App
lications/ a new folder and name it "ProgrammingInMathematica". Then, copy the
file spheroidF.m into this folder. In UNIX system, simply copy it into the use
r's account. To load the package PC, simply key in:
<<ProgrammingInMathematica`SpheroidF`
In UNIX system, simply type ( after copying the file ) :
<<`SpheroidF.m`
After then, the package is ready for use.
Functions
There are altogether 18 functions that can be utilized upon loading the package.
They are :
1) Prolate Angular Function of the 1st type - \!\(TraditionalForm\`\(\(S
\^\((1)\)\)\_mn\)(c, \[Eta])\)
2) Prolate Angular Function of the 2nd type - \!\(TraditionalForm\`\(\(S
\^\((2)\)\)\_mn\)(c, \[Eta])\)
3) Oblate Angular Function of the 1st type - \!\(TraditionalForm\`\(\(S\
^\((1)\)\)\_mn\)(\(-ic\), \[Eta])\)
4) Oblate Angular Function of the 2nd type - \!\(TraditionalForm\`\(\(S\
^\((2)\)\)\_mn\)(\(-ic\), \[Eta])\)
5) Prolate Radial Function of the 1st type - \!\(TraditionalForm\`\(\(R\
^\((1)\)\)\_mn\)(c, \[Xi])\)
6) Prolate Radial Function of the 2nd type - \!\(TraditionalForm\`\(\(R\
^\((2)\)\)\_mn\)(c, \[Xi])\)
7) Oblate Radial Function of the 1st type - \!\(TraditionalForm\`\(\(R\^
\((1)\)\)\_mn\)(\(-ic\), i\[Xi])\)
8) Oblate Radial Function of the 1st type - \!\(TraditionalForm\`\(\(R\^
\((2)\)\)\_mn\)(\(-ic\), i\[Xi])\)
In addition, it also include the derivatives of the above functions, i.e.,
9) Prolate Angular Function of the 1st type - \!\(TraditionalForm\`\(\(S
\^\((1)\)'\)\_mn\)(c, \[Eta])\)
10) Prolate Angular Function of the 2nd type - \!\(TraditionalForm\`\(\(
S\^\((2)\)'\)\_mn\)(c, \[Eta])\)
11) Oblate Angular Function of the 1st type - \!\(TraditionalForm\`\(\(S
\^\((1)\)'\)\_mn\)(\(-ic\), \[Eta])\)
12) Oblate Angular Function of the 2nd type - \!\(TraditionalForm\`\(\(S
\^\((2)\)'\)\_mn\)(\(-ic\), \[Eta])\)
13) Prolate Radial Function of the 1st type - \!\(TraditionalForm\`\(\(R
\^\((1)\)'\)\_mn\)(c, \[Xi])\)
14) Prolate Radial Function of the 2nd type - \!\(TraditionalForm\`\(\(R
\^\((2)\)'\)\_mn\)(c, \[Xi])\)
15) Oblate Radial Function of the 1st type - \!\(TraditionalForm\`\(\(R\
^\((1)\)'\)\_mn\)(\(-ic\), i\[Xi])\)
16) Oblate Radial Function of the 1st type - \!\(TraditionalForm\`\(\(R\
^\((2)\)'\)\_mn\)(\(-ic\), i\[Xi])\)
The last two functions calculate the eigenvalue and eigenvalues \!\(TraditionalF
orm\`\[Lambda]\_mn\)of the characteristics equation :
\!\(TraditionalForm\`\(\[PartialD]\ \)\/\[PartialD]\ \[Alpha]\)[(1-\!\(T
raditionalForm\`\(\[Alpha]\^2)\)\)\!\(TraditionalForm\`\(\[PartialD]\ \)\/\[Part
ialD]\ \[Alpha]\)\!\(TraditionalForm\`\(\(A\_mn\)(c, \[Alpha])]\)\) + [ \!\(Trad
itionalForm\`\[Lambda]\_mn\)-\!\(TraditionalForm\`\(c\^2\) \[Alpha]\^2\)-\!\(Tra
ditionalForm\`m\^2\/\(1 - \[Alpha]\^2\)\)]\!\(TraditionalForm\`\(A\_mn\)(c, \[Al
pha])\)=0
where \[Alpha]=\[Xi] or \[Eta] and
A=S or R
Example
The Angular Function is called by "SpheroidSF[m,n,c,\[Eta],Type->1/2,kind->"prol
ate"/"oblate"]". ( REMEMBER TO ENCLOSE THE WORD "prolate" or "oblate" IN INVERT

ED COMMAS. OTHERWISE, WRONG SOLUTION WILL RESULT) . For example, the value of
\!\(TraditionalForm\`\(\(S\^\((1)\)\)\_02\)(1.0, 0.5)\) is given by
SpheroidSF[0,2,1.0,0.5,Type->1,kind->"prolate"]
-0.09875149796
For the corresponding type 2 solution i.e., \!\(TraditionalForm\`\(\(S\^\((2)\)\
)\_02\)(1.0, 0.5)\), simply change the type to 2, as shown below:
SpheroidSF[0,2,1.0,0.5,Type->2,kind->"prolate"]
18.53186048
For the oblate case , change the kind to "oblate" without keying in the -ic for
the parameter c, e.g. \!\(TraditionalForm\`\(\(S\^\((1)\)\)\_02\)(\(-1.0\) i, 0.
5)\)
SpheroidSF[0,2,1.0,0.5,Type->1,kind->"oblate"]
-0.1507602618
In similar fashion, the value of \!\(TraditionalForm\`\(\(S\^\((2)\)\)\_02\)(\(
-1.0\) i, 0.5)\) is given by :
SpheroidSF[0,2,1.0,0.5,Type->2,kind->"oblate"]
18.30891304
The radial function and derivatives are called in similar style. Some styles is
given below:
The value of \!\(TraditionalForm\`\(\(R\^\((1)\)\)\_01\)(2.0, 1.077)\)
SpheroidRF[0,1,2.0,1.077,Type->1,kind->"prolate"]
0.5311334495
The value of \!\(TraditionalForm\`\(\(R\^\((2)\)\)\_01\)(2.0, 1.077)\)
SpheroidRF[0,1,2.0,1.077,Type->2,kind->"prolate"]
0.9215297406
The value of \!\(TraditionalForm\`\(\(R\^\((1)\)\)\_01\)(\(-i\)\ 2.0, i\ 1.077)\
)
SpheroidRF[0,1,2.0,1.077,Type->1,kind->"oblate"]
0.3656916081
The value of \!\(TraditionalForm\`\(\(R\^\((2)\)\)\_01\)(\(-i\)\ 2.0, i\ 1.077)\
)
SpheroidRF[0,1,2.0,1.077,Type->2,kind->"oblate"]
0.1199412174
The Derivatives
The derivatives of the angular functions is called using "SpheroidSFPrime[m,n,c,
\[Eta],Type,kind]. e.g. the values of \!\(TraditionalForm\`\(\(S\^\((1)\)'\)\_0
1\)(1.2, 0.8)\) is given by :
SpheroidSFPrime[0,1,1.2,0.8,Type->1, kind->"prolate"]
0.7425534722
the values of \!\(TraditionalForm\`\(\(S\^\((2)\)'\)\_01\)(1.2, 0.8)\) is given
by :
SpheroidSFPrime[0,1,1.2,0.8,Type->2, kind->"prolate"]
-7.728640026
the values of \!\(TraditionalForm\`\(\(S\^\((1)\)'\)\_01\)(\(-i\)\ 1.2, 0.8)\)
is given by :
SpheroidSFPrime[0,1,1.2,0.8,Type->1, kind->"oblate"]
1.296898262
the values of \!\(TraditionalForm\`\(\(S\^\((2)\)'\)\_01\)(\(-i\)\ 1.2, 0.8)\)
is given by :
SpheroidSFPrime[0,1,1.2,0.8,Type->2, kind->"oblate"]
5.664231946
For the radial function derivatives , the value of \!\(TraditionalForm\`\(\(R\^\
((1)\)'\)\_11\)(2.0, 1.020)\):
SpheroidRFPrime[1,1,2.0,1.020,Type->1, kind->"prolate"]
2.994397411
The value of \!\(TraditionalForm\`\(\(R\^\((2)\)'\)\_11\)(2.0, 1.020)\):
SpheroidRFPrime[1,1,2.0,1.020,Type->2, kind->"prolate"]
50.18981734
The value of \!\(TraditionalForm\`\(\(R\^\((1)\)'\)\_11\)(\(-i\)\ 2.0, i\ 1.020)
\):

SpheroidRFPrime[1,1,2.0,1.020,Type->1, kind->"oblate"]
-0.2378755792
The value of \!\(TraditionalForm\`\(\(R\^\((2)\)'\)\_11\)(\(-i\)\ 2.0, i\ 1.020)
\):
SpheroidRFPrime[1,1,2.0,1.020,Type->2, kind->"oblate"]
0.6128247457
EigenValue
The package also includes two functions that can be called to given the characte
ristic values. While one of the function give, just one eignevalue for given m,
n , c , the other givens the first n characteristics values For a single eigen
value.
EigenV[1,1,1.0]
2.195548355
gives the values for \!\(TraditionalForm\`\(\[Lambda]\_11\)(1.0)\). On the othe
r hand,
EigenVals[1,1,8]
"For n="\[InvisibleSpace]1\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is \
"\[InvisibleSpace]2.195548355
"For n="\[InvisibleSpace]2\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is \
"\[InvisibleSpace]6.424699144
"For n="\[InvisibleSpace]3\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is \
"\[InvisibleSpace]12.46791533
"For n="\[InvisibleSpace]4\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is \
"\[InvisibleSpace]20.48169601
"For n="\[InvisibleSpace]5\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is \
"\[InvisibleSpace]30.48806579
"For n="\[InvisibleSpace]6\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is \
"\[InvisibleSpace]42.49157795
"For n="\[InvisibleSpace]7\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is \
"\[InvisibleSpace]56.49372974
"For n="\[InvisibleSpace]8\[InvisibleSpace]" m="\[InvisibleSpace]1
\[InvisibleSpace]" the Characteristic Value is "\[InvisibleSpace]72.4951466
gives the values for \!\(TraditionalForm\`\(\[Lambda]\_11\)(1.0)\),\!\(Tradition
alForm\`\(\[Lambda]\_12\)(1.0)\),\!\(TraditionalForm\`\(\[Lambda]\_13\)(1.0)\),\
!\(TraditionalForm\`\(\[Lambda]\_14\)(1.0)\),\!\(TraditionalForm\`\(\[Lambda]\_1
5\)(1.0)\),\!\(TraditionalForm\`\(\[Lambda]\_16\)(1.0)\),\!\(TraditionalForm\`\(
\[Lambda]\_17\)(1.0)\),\!\(TraditionalForm\`\(\[Lambda]\_18\)(1.0)\), i.e the fi
rst 8 characteristics values given m, c. The format for the two Functions are
1) EigenV[m,n,c]
2) EigenVals[m,c,n]
Reliability
The values computed by this package has been verified against all available tabl
e in the text "Spheroidal Wave Functions" by Carson Flammer and is found to be a
ccurate and comparable. The tables that were verified is compiled in the file T
ableI, TableII, and TableIII. Pls kindly refer to the file for proof of accurac
y.

You might also like