Find the polynomial expression given the following factors:

2 ビュー (過去 30 日間)
John Doe
John Doe 2021 年 11 月 26 日
編集済み: Dyuman Joshi 2021 年 11 月 26 日
Find the polynomial expression given the following factors:
  1. (𝑥 + 3)(𝑥 − 2)(𝑥 + 2)(𝑥 + 4)
>> r = [-3 2 -2 -4];
>> p = poly(r)
p =
1 7 8 -28 -48
Is this correct? I don't know how I can make the given into a proper polynomial expression. Also the 'syms' doesnt work on my matlab version which is R2019a.

採用された回答

Dyuman Joshi
Dyuman Joshi 2021 年 11 月 26 日
編集済み: Dyuman Joshi 2021 年 11 月 26 日
It is correct.
syms x
expand((x+3)*(x-2)*(x+2)*(x+4))
ans = 
You can also use sym2poly if you have the symbolic toolbox to convert syms variable into coefficients.
P.S - And syms should work in R2019a

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by