+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 4
    Points: 736, Level: 5

    Join Date
    Jan 2014
    Posts
    6
    Helped
    0 / 0
    Points
    736
    Level
    5

    Change polynomial representation ( MATLAB)

    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.

    •   Alt7th November 2017, 11:35

      advertising

        
       

  2. #2
    Advanced Member level 4
    Points: 7,742, Level: 20
    Achievements:
    7 years registered

    Join Date
    Nov 2009
    Location
    Italy
    Posts
    1,077
    Helped
    374 / 374
    Points
    7,742
    Level
    20

    Re: Change polynomial representation ( MATLAB)

    Did you try the <combine> function ?



    •   Alt7th November 2017, 12:43

      advertising

        
       

  3. #3
    Newbie level 4
    Points: 736, Level: 5

    Join Date
    Jan 2014
    Posts
    6
    Helped
    0 / 0
    Points
    736
    Level
    5

    Re: Change polynomial representation ( MATLAB)

    Did not works for me.

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



--[[ ]]--