legendre function of second kind
이전 댓글 표시
I am wondering if matlab have inbult function to compute legendre function of second kind like mathematica have LegendreQ.
댓글 수: 4
David Goodmanson
2019년 3월 14일
Hi yashika,
I don't believe so, although I would be happy to be proved wrong. Meanwhile,f you are looking for the basic legendre Q function with mu = 0 (not the associated legendre functions with mu ~= 0), then if n is not too large the expression
Q_n_(x) = (1/2) P_n_(x) log((1+x)/(1-x)) - Sum{1:n} (1/m) P_m-1_(x) P_n-m_(x)
should do reasonably well.
Yashika
2019년 3월 14일
Yashika
2019년 3월 14일
David Goodmanson
2019년 3월 14일
I don't know how accurate that might be for n as high as 20, and it would be interesting to see how well the recurrence relation is satisfied in the region n ~~ 20.
답변 (2개)
Bjorn Gustavsson
2019년 3월 14일
0 개 추천
You can find a toolbox for special functions on the file exchange: Computation of Special Functions
I haven't (or at least don't remember) used this toolbox, but it might solve your task.
HTH
Sophus
2025년 4월 4일
0 개 추천
You can use the hypergeometric function as a representation:

댓글 수: 1
David Goodmanson
2025년 4월 4일
you can as long as |z| > 1, not otherwise.
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!