associated legendre functions matlab
古いコメントを表示
In the function legendre(1,-0.7071), the value corresponding to P11(-0.7071) is coming wrong when checked with standard solutions. Matlab is giving the solution as -0.7071. whereas, the actual solution is +0.7071. Please have a look at it. Or please suggest me how to correct it.
One can verify using online calculator in the link. https://keisan.casio.com/exec/system/1287453184
6 件のコメント
Rik
2019 年 12 月 7 日
The documentation states that the first order is P(x)=x. Do you have any mathematical proof this is incorrect?
chaitanya acharya
2019 年 12 月 7 日
Rik
2019 年 12 月 7 日
Since the documentation states the first degree returns the input as output, that obviously doesn't match your analysis. If you show your analytical solution we might to see if there is a flaw in your reasoning, or if there is a flaw in the analysis by Mathworks engineers.
chaitanya acharya
2019 年 12 月 7 日
編集済み: Walter Roberson
2019 年 12 月 7 日
Tomy Duby
2020 年 4 月 16 日
The issue is caused by two different definitions of associated Legendre polynomials:
with
non-negative integers.
is the definition DLMF (Digital Library of Mathematical Functions) and Matlab are using.
The relation between the two definitions for real x is:

This relation is in the printed edition of Abramowitz and Stegun. I could not find it in DLMF.
I hope this helps.
TD
David Goodmanson
2020 年 4 月 17 日
Hi Tony,
That's yet another reason why Abramowitz and Stegun is a better book than DLMF. There is a cornocopia of useful equations in A&S, and when they did DLMF you would think they would have supplemented those to make it even better. Instead they threw out a bunch of them and refer you to reference book blah blah blah if you want to find what you need. No excuse for that.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で General PDEs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!