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!