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
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
Yashika 2019 年 3 月 14 日
Yes I have basic legendre functions, and i need only first few functions like Q0 to Q20 , I will try this, Thank you for the help.
Yashika
Yashika 2019 年 3 月 14 日
It worked, thanks.
David Goodmanson
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
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

1 件のコメント

Yashika
Yashika 2019 年 3 月 14 日
Thanks, will give it a shot.

サインインしてコメントする。

Sophus
Sophus 2025 年 4 月 4 日

0 投票

You can use the hypergeometric function as a representation:

1 件のコメント

David Goodmanson
David Goodmanson 2025 年 4 月 4 日
you can as long as |z| > 1, not otherwise.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

質問済み:

2019 年 3 月 13 日

コメント済み:

2025 年 4 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by