ELECTROMAGNETIC CODES

Mathematica Software Codes in Book

LW Li, XK Kang, & MS Leong
"Spheroidal Wave Functions in Electromagnetic Theory"
New York: Wiley, p. 320, November 2001
ISBN No.: 0-471-03170-4



                              


 

Contact: Please email your questions to Professor Le-Wei Li at LWLi@nus.edu.sg

Back to Top

Mathematica Codes for Spheroidal Harmonics

Student Products
The code is a part of the work detailed as follows:
LW Li et al., "Computations of spheroidal harmonics with complex arguments: A review with an algorithm", Physical Review E, vol. 58, no. 5, pp. 6792-6806,  November 1998.

 

This paper was considered as a classic paper among other classic ones in a review by WJ Thomthson, a mathematician who published a Mathematics Handbook. Please refer his paper published and detailed: WJ Thomthson, Spheroidal Wave Functions, IEEE Computational Science and Engineering, vol. 1, no. 3, pp. 84-87, May-June 1999. It consists of both iterative and direct solution procedures for both small and large c values (the claim by a paper on "only small c value is considered in this paper" was incorrect.

 

The originally developed codes worked nicely with Mathematica version 2.0+. They provide very accurate results. These codes are also available at Wolfram's Browse MathSource web site: MathSource for Mathematica version 2.0+.

 

The Mathematica version 3.0+ has a better interface, thus the code was revised to work in the new version, and it worked nicely as well.

As Mathematica version 4.0+ is found to have some bugs inside when used for calculating Legendre polynomials P and Q of different types, the following new codes were developed to avoid these bugs. 

Contact: Please email your questions to Professor Le-Wei Li at LWLi@nus.edu.sg

 

Note: The code developer, LW Li, apologizes to those users who contacted LW Li for the new information or revision of the code, but got no response yet. This is because the code was originated by LW Li and is solely maintained by LW Li; but he has a lot of other commitments, administratively, academically, or professionally. He will try his best to resolve the problem due to the bugs of the Mathematica v4+. Please note that the code itself has no problem at all. For the angular spheroidal function and the radial spheroidal function of the first kind, the code is still accurate; but the values of radial spheroidal function of the second kind are no longer accurate due to the existence of the bugs in the Mathematica v4.0+.   

Back to Top

Fast Algorithm Codes

Some of the codes here listed are password-protected, intended for group's internal use while others are open to the public. 

Contact: Please email your questions to Professor Le-Wei Li at LWLi@nus.edu.sg

Back to Top