[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: normalized ALF (Assotiated Legendre Function)

From: Marco Caliari
Subject: Re: normalized ALF (Assotiated Legendre Function)
Date: Tue, 12 Feb 2008 16:02:23 +0100 (CET)


The normalized Lagrange functions should (almost) never give NaNs of Infs. The enclosed script fixes a problem in the previous:

octave:1> legendreold(151,-0.9,"norm")(end-1:end)
ans =

octave:2> legendre(151,-0.9,"norm")(end-1:end)
ans =



"The following functions compute the associated Legendre Polynomials P_l^m(x). Note that this function grows combinatorially with l and can overflow for l larger than about 150. There is no trouble for small m, but overflow occurs when m and l are both large. Rather than allow overflows, these functions refuse to calculate P_l^m(x) and return GSL_EOVRFLW when they can sense that l and m are too big."

Attachment: legendre.m
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]