کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
502455 863706 2010 7 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
A new Fortran 90 program to compute regular and irregular associated Legendre functions
موضوعات مرتبط
مهندسی و علوم پایه شیمی شیمی تئوریک و عملی
پیش نمایش صفحه اول مقاله
A new Fortran 90 program to compute regular and irregular associated Legendre functions
چکیده انگلیسی

We present a modern Fortran 90 code to compute the regular Plm(x) and irregular Qlm(x) associated Legendre functions for all x∈(−1,+1)x∈(−1,+1) (on the cut) and |x|>1|x|>1 and integer degree (l) and order (m). The code applies either forward or backward recursion in (l) and (m) in the stable direction, starting with analytically known values for forward recursion and considering both a Wronskian based and a modified Miller's method for backward recursion. While some Fortran 77 codes existed for computing the functions off the cut, no Fortran 90 code was available for accurately computing the functions for all real values of x   different from x=±1x=±1 where the irregular functions are not defined.Program summaryProgram title: Associated Legendre FunctionsCatalogue identifier: AEHE_v1_0Program summary URL:http://cpc.cs.qub.ac.uk/summaries/AEHE_v1_0.htmlProgram obtainable from: CPC Program Library, Queen's University, Belfast, N. IrelandLicensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.htmlNo. of lines in distributed program, including test data, etc.: 6722No. of bytes in distributed program, including test data, etc.: 310 210Distribution format: tar.gzProgramming language: Fortran 90Computer: Linux systemsOperating system: LinuxRAM: bytesClassification: 4.7Nature of problem:   Compute the regular and irregular associated Legendre functions for integer values of the degree and order and for all real arguments. The computation of the interaction of two electrons, 1/|r1−r2|1/|r1−r2|, in prolate spheroidal coordinates is used as one example where these functions are required for all values of the argument and we are able to easily compare the series expansion in associated Legendre functions and the exact value.Solution method:   The code evaluates the regular and irregular associated Legendre functions using forward recursion when |x|<1|x|<1 starting the recursion with the analytically known values of the first two members of the sequence. For values of the argument |x|<1|x|<1, the upward recursion over the degree for the regular functions is numerically stable. For the irregular functions, backward recursion must be applied and a suitable method of starting the recursion is required. The program has two options; a modified version of Miller's algorithm and the use of the Wronskian relation between the regular and irregular functions, which was the method considered in [1]. Both approaches require the computation of a continued fraction to begin the recursion. The Wronskian method (which can also be described as a modified Miller's method) is a convenient method of computations when both the regular and irregular functions are needed.Running time: The example tests provided take a few seconds to run.References:[1]A. Gil, J. Segura, A code to evaluate prolate and oblate spheroidal harmonics, Comput. Phys. Commun. 108 (1998) 267–278.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Computer Physics Communications - Volume 181, Issue 12, December 2010, Pages 2091–2097
نویسندگان
, , , , ,