47box
Newbie level 5

Hi,
How can I change a polynomial representation from x^2+ 6x + 10 to (x+3)^2 + 1 ?
I used a <horner> function from MATLAB and the result was x*(x + 6) + 10.
Anyway to have the above result " (x+3)^2 + 1 " using different function or arguments in matlab?
Thanks.
How can I change a polynomial representation from x^2+ 6x + 10 to (x+3)^2 + 1 ?
I used a <horner> function from MATLAB and the result was x*(x + 6) + 10.
Anyway to have the above result " (x+3)^2 + 1 " using different function or arguments in matlab?
Thanks.