MATLAB Answers

Derivative of legendreP function

조회 수: 10(최근 30일)
Xin
Xin 22 Feb 2018
Answered: Star Strider 22 Feb 2018
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

  댓글 수: 0

로그인 to comment.

답변 수 (1)

Star Strider
Star Strider 22 Feb 2018
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.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by