Change polynomial representation ( MATLAB)

Status
Not open for further replies.

47box

Newbie level 5
Joined
Jan 8, 2014
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
101
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.
 

Did you try the <combine> function ?
 

Did not works for me.

combine(x*(x + 6) + 10) -->> x*(x + 6) + 10
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…