How to do polynomial differentiation
1 回表示 (過去 30 日間)
古いコメントを表示
How to do polynomial differentiation without using known matlab commands
2 件のコメント
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
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 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Polynomials についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!