Polynomials - expand (s-p1)*(s-p2)*(s-p3)...(s-pn-1) and find the coefficients an-1, ... , a2, a1, a0 of s^n + an-1*s^n-1 + ... + a2*s^2 + a1*s + a0
2 ビュー (過去 30 日間)
古いコメントを表示
given: (s-p1)*(s-p2)*(s-p3)...(s-pn-1)
find an-1, ... , a2, a1, a0 of s^n + an-1*s^n-1 + ... + a2*s^2 + a1*s + a0
How can I solve this with matlab? If I enter for example syms s and (s - 1)*(s - 2)*(s - 3)*(s - 4) in the command window the answer is (s - 1)*(s - 2)*(s - 3)*(s - 4).
Thanks for helping.
Best regards Michael
0 件のコメント
採用された回答
Wayne King
2011 年 9 月 21 日
Hi Michael, How about using expand()
syms s
p = (s - 1)*(s - 2)*(s - 3)*(s - 4);
expand(p)
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!