A Little Smarter
A Little Smarter
- P(x) = 3x5+2x4+7x3+8x2+2x+4
- t1 := 4; xp := x;
- t2 := (2*xp) + t1; xp := xp * x;
- t3 := (8*xp) + t2; xp := xp * x;
- t4 := (7*xp) + t3; xp := xp * x;
- t5 := (2*xp) + t4; xp := xp * x;
- P := (3*xp) + t5;
- 9 Multiplications, 5 Additions