Find the polynomial expression given the following factors:
1 次查看(过去 30 天)
显示 更早的评论
Find the polynomial expression given the following factors:
- (𝑥 + 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.
0 个评论
采纳的回答
Dyuman Joshi
2021-11-26
编辑:Dyuman Joshi
2021-11-26
It is correct.
syms x
expand((x+3)*(x-2)*(x+2)*(x+4))
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!