Hi All,

How can one convert a polynomial of the general (and common) form:

p(x) = Sum a(i) x^i, for i = 0,1,2,..,nto a nested form:

p(x) = A(0) + x^B(0)(1 + A(1)x^B(1)(1 + A(2)x^B(2)(1 + A(3)x^B(3)( .....(1 + A(n)x^B(n)))...)

Notice that each open parenthesis is in the form of:

1 + A(i)x^B(i)

I saw these nested polynomials, as approximations for various common log and trig functions, on page 37 in Jon Smith's book *Scientific Analysis on the Pocket Calculator, 2nd edition*.

Namir

*Edited: 16 Apr 2012, 6:56 p.m. *