Skip to main content
. Author manuscript; available in PMC: 2008 Sep 8.
Published in final edited form as: IEEE Trans Neural Syst Rehabil Eng. 2006 Dec;14(4):410–418. doi: 10.1109/TNSRE.2006.886727

Factoring Algorithm for Exponentiation.

1 x0=X, y0=1, g(i)=log(1+2-i), i=1,2,…,n
2 for i=1 to n
3 a = xig(i)
4 if a > 0
5 xi+1 = a
6 yi+1 = yi + yi·2-i
7 else
8 xi+1 = xi
9 yi+1 = yi
10 end if
11 end for