Write an algorithm to evaluate the following polynomial. The number of additions and multiplications taken should be 5.
9x5 - 10x4 + 6x3 + 5x2 - 10x + 15
The given polynomial can be evaluated using Hormer’* rule as
9x5 -10x4 +6x3 +5x2 -10x+15