I am trying to find a way to integrate the following expression(adsbygoogle = window.adsbygoogle || []).push({});

Integral {Ylm(theta, phi) Conjugate (Yl'm'(theta, phi) LegendrePolynomial(n, Cos[theta])} dtheta dphi

for definite values of l,m,n,l',m' . You normally do this in Mathematica very easily. But it happens that I need to use this integral in Matlab for many different values of l,m,n,l',m' as it will be part of of more code in a program I am writing. Is there any efficient way to solve this integral? I was thinking to convert the spherical harmonics terms into associated legendre polynomials following the formula to do this and then multiply by the other legendre polynomial (third term in the expression above). I am new to Matlab therefore I am not sure what approach to follow. Would it be easier doing this in other language or software.. except Mathematica!

Thanks and hope you can help

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

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

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

# Integration of a product of legendre polynomials in matlab

Loading...

Similar Threads for Integration product legendre |
---|

MATLAB Double Numerical Integration |

MATLAB Integrating Trisurf |

Mathematica Complex output from a real integral |

Maple Computing Numerical Integrals with Maple |

Mathematica Cannot do the integral of the Hyper-geometric function? |

**Physics Forums | Science Articles, Homework Help, Discussion**