I see in MATLAB that you can call legendre(n,X) and it returns the associated legendre polynomials. All I need is is the simple Legendre polynomial of degrees 0-299, which corresponds to the first element in the array that this function returns. I don't want to call this function and get this [rather large] array back every time, because I am iterating inside a double for loop. This is not so much a problem when my n=299 but I have to run this program for N=2000.(adsbygoogle = window.adsbygoogle || []).push({});

Is there a routine that anybody knows about that returns just the simple Legendre polynomial of degree n (and order m = 0)?

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB Legendre Polynomials

Loading...

Similar Threads - MATLAB Legendre Polynomials | Date |
---|---|

Matlab Coding angular spectrum of waves in fluid | 30 minutes ago |

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

Integration of a product of legendre polynomials in matlab | Aug 19, 2011 |

**Physics Forums - The Fusion of Science and Community**