How to do polynomial differentiation

3 Ansichten (letzte 30 Tage)
Raiven Balderas
Raiven Balderas am 28 Mär. 2018
Kommentiert: Raiven Balderas am 28 Mär. 2018
How to do polynomial differentiation without using known matlab commands
  2 Kommentare
Guillaume
Guillaume am 28 Mär. 2018
Why wouldn't you want to use known matlab commands. And for that matter, what are unknown matlab commands then?
Raiven Balderas
Raiven Balderas am 28 Mär. 2018
see below accepted answer :)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Roger Stafford
Roger Stafford am 28 Mär. 2018
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 Kommentar
Raiven Balderas
Raiven Balderas am 28 Mär. 2018
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 28 Mär. 2018
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.

Kategorien

Mehr zu Elementary Math finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by