Legendrep

Parent Previous Next

Legendrep


Associated Legendre function of the first kind (wiki)



Syntax


Legendrep(n, x)

n is a integer

x is a real number

Return a vector contains associated Legendre function of the first kind for x based on n


n is a integer

x is real row/column array

Return a matrix in which each column contains Legendre function of the first kind for x[i] based on n


Example


Input

Output

legendrep(5, 0.5)

legendrep(2, [0.21,-0.05,0.89,-0.43,0.52])


See Also


Created with the Personal Edition of HelpNDoc: Full-featured Documentation generator