Find the polynomial expression given the following factors:

์กฐํšŒ ์ˆ˜: 1 (์ตœ๊ทผ 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 Exchange์—์„œ Formula Manipulation and Simplification์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

์ œํ’ˆ


๋ฆด๋ฆฌ์Šค

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by