# How to do polynomial differentiation

조회 수: 13(최근 30일)
Raiven Balderas 2018년 3월 28일
댓글: Raiven Balderas 2018년 3월 28일
How to do polynomial differentiation without using known matlab commands
##### 댓글 수: 2표시숨기기 이전 댓글 수: 1
Raiven Balderas 2018년 3월 28일

댓글을 달려면 로그인하십시오.

### 채택된 답변

Roger Stafford 2018년 3월 28일
Let P be the usual Matlab row vector of coefficients of a polynomial. Then, (as we all learned in calculus,) the corresponding vector of coefficients of the polynomial's derivative, dP, is:
n = length(P);
dP = (n-1:-1:1).*P(1:n-1);
##### 댓글 수: 1표시숨기기 없음
Raiven Balderas 2018년 3월 28일
Thanks ! I love math and have taken up to calculus 3 , but for some reason me and coding matlab do not mix. thank you very much . great answer

댓글을 달려면 로그인하십시오.

### 추가 답변(1개)

Walter Roberson 2018년 3월 28일
Multiply each location in the coefficient vector by the degree it corresponds to, and get rid of the location corresponding to degree 0. You can probably build the degree list using the ":" operator.

댓글을 달려면 로그인하십시오.

### 범주

Find more on Calculus in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by