How to do polynomial differentiation

3 次查看(过去 30 天)
How to do polynomial differentiation without using known matlab commands
  2 个评论
Guillaume
Guillaume 2018-3-28
Why wouldn't you want to use known matlab commands. And for that matter, what are unknown matlab commands then?

请先登录,再进行评论。

采纳的回答

Roger Stafford
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
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
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.

类别

Help CenterFile Exchange 中查找有关 Elementary Math 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by