Derivative of legendreP function

Hello. I am wondering how could one differentiate the legendre polynomial, e.g. like legendreP(5,x) can be expressed as (63*x^5)/8 - (35*x^3)/4 + (15*x)/8 and how to let matlab automatically give value of the derivative of it numerically. Is there a function that deals with this type of differentiation?
Thanks a lot

답변 (1개)

Star Strider
Star Strider 2018년 2월 22일

0 개 추천

The best way to compute the derivative of a vector (that I assume you are computing) is to use the gradient (link) function. The advantage is that it produces a result vector the same length as the argument vector. See the documentation for the details of the computations it uses and its other abilities.

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

질문:

Xin
2018년 2월 22일

답변:

2018년 2월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by