Symmetric level-index arithmetic explained

The level-index (LI) representation of numbers, and its algorithms for arithmetic operations, were introduced by Charles Clenshaw and Frank Olver in 1984.

The symmetric form of the LI system and its arithmetic operations were presented by Clenshaw and Peter Turner in 1987.

Michael Anuta, Daniel Lozier, Nicolas Schabanel and Turner developed the algorithm for symmetric level-index (SLI) arithmetic, and a parallel implementation of it. There has been extensive work on developing the SLI arithmetic algorithms and extending them to complex and vector arithmetic operations.

Definition

The idea of the level-index system is to represent a non-negative real number as

ef
e
e
X=e
where

0\leqf<1

and the process of exponentiation is performed times, with

\ell\geq0

. and are the level and index of respectively. is the LI image of . For example,
e0.9711308
e
X=1234567=e
so its LI image is

x=\ell+f=3+0.9711308=3.9711308.

The symmetric form is used to allow negative exponents, if the magnitude of is less than 1. One takes or and stores it (after substituting +1 for 0 for the reciprocal sign since for the LI image is and uniquely defines and we can do away without a third state and use only one bit for the two states −1 and +1) as the reciprocal sign . Mathematically, this is equivalent to taking the reciprocal (multiplicative inverse) of a small magnitude number, and then finding the SLI image for the reciprocal. Using one bit for the reciprocal sign enables the representation of extremely small numbers.

A sign bit may also be used to allow negative numbers. One takes sgn(X) and stores it (after substituting +1 for 0 for the sign since for the LI image is and uniquely defines and we can do away without a third state and use only one bit for the two states −1 and +1) as the sign . Mathematically, this is equivalent to taking the inverse (additive inverse) of a negative number, and then finding the SLI image for the inverse. Using one bit for the sign enables the representation of negative numbers.

The mapping function is called the generalized logarithm function. It is defined as

\psi(X)=\begin{cases} X&if0\leqX<1\\ 1+\psi(lnX)&ifX\geq1 \end{cases}

and it maps

[0,infty)

onto itself monotonically and so it is invertible on this interval. The inverse, the generalized exponential function, is defined by

\varphi(x)=\begin{cases} x&if0\leqx<1\\ e\varphi&ifx\geq1 \end{cases}

The density of values represented by has no discontinuities as we go from level to (a very desirable property) since:

\left.

d\varphi(x)
dx

\right|x=1=\left.

d\varphi(ex)
dx

\right|x=0.

The generalized logarithm function is closely related to the iterated logarithm used in computer science analysis of algorithms.

Formally, we can define the SLI representation for an arbitrary real (not 0 or 1) as

X=sX\varphi

rX
(x)
where is the sign (additive inversion or not) of and is the reciprocal sign (multiplicative inversion or not) as in the following equations:

sX=sgn(X),

-1
r
X=sgn(|X|-|X|

),x=\psi(max(|X|,|X|-1))=\psi

rX
(|X|

)

whereas for = 0 or 1, we have:

s0=+1,r0=+1,x=0.0,

s1=+1,r1=+1,x=1.0.

For example,

e0.9711308
-e
X=-\dfrac{1}{1234567}=-e
and its SLI representation is

x=-\varphi(3.9711308)-1.

See also

Further reading

External links