No BSD License  

Highlights from
AssociatedLaguerrePoly.m

4.5

4.5 | 2 ratings Rate this file 7 Downloads (last 30 days) File Size: 600 Bytes File ID: #4914

AssociatedLaguerrePoly.m

by David Terr

 

12 May 2004 (Updated 15 Jun 2004)

This program returns the coefficients of the Associated Laguerre polynomial L_{n,m}, given n and m.

| Watch this File

File Information
Description

This program returns the coefficients of the Associated Laguerre polynomial L_{n,m}, given nonnegative integers n and m with m <= n. When m=0, this is the Laguerre polynomial L_n. polyval(AssociatedLaguerrePoly(n,m),x) evaluated L_{n,m}(x).

Acknowledgements
This submission has inspired the following:
Generalized Laguerre polynomial
MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
09 Nov 2005 Mark Dean

Cheers you are a MATLAB wizard

05 Apr 2007 Andreas Baumgartner

I use the following, based on the posted version. It is not necessary to distinguish the m=0 case and the binomial can be replaced by some factorials.

% y=Laguerre(n,m,x) returns the (generalised) Laguerre Polynomial
% L_{n}^{m}(x) by calculating the coefficients of the Taylor series
% following http://en.wikipedia.org/wiki/Laguerre_polynomials and then
% using polyval to calculate the actual function values. Required are input
% n>0.
% The idea is based upon the solution in
% http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4914
% however without distinguishing m=0 from other polynomials.

function y=Laguerre(n,m,x)
P = zeros(n+1,1);
for v=0:n
    P(n+1-v) = (-1)^v * factorial(n+m)/factorial(n-v)/factorial(m+v)/factorial(v);
end;
y = polyval(P,x);

Please login to add a comment or rating.
Updates
15 Jun 2004

I modified this function so that it returns a column vector.

Tag Activity for this File
Tag Applied By Date/Time
differential equations David Terr 22 Oct 2008 07:19:47
laguerre polynomial David Terr 22 Oct 2008 07:19:47
polynomial David Terr 22 Oct 2008 07:19:47
associated laguerre Cristina McIntire 05 Feb 2009 14:23:36
polynomial Cristina McIntire 05 Feb 2009 14:23:36

Contact us at files@mathworks.com