Symmetric level-index arithmetic
The level-index (LI) representation of numbers, and its algorithms for arithmetic operations, were introduced by Charles Clenshaw and Frank Olver in 1984.[1]
The symmetric form of the LI system and its arithmetic operations were presented by Clenshaw and Peter Turner in 1987.[2]
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 X as
- [math]\displaystyle{ X=e^{e^{e^{\cdots^{e^f}}}} }[/math]
where [math]\displaystyle{ 0\leq f\lt 1 }[/math] and the process of exponentiation is performed ℓ times, with [math]\displaystyle{ \ell\geq 0 }[/math]. ℓ and f are the level and index of X respectively. x = ℓ + f is the LI image of X. For example,
- [math]\displaystyle{ X=1234567=e^{e^{e^{0.9711308}}} }[/math]
so its LI image is
- [math]\displaystyle{ x=\ell+f=3+0.9711308=3.9711308. }[/math]
The symmetric form is used to allow negative exponents, if the magnitude of X is less than 1. One takes sgn(log(X)) or sgn(|X| − |X|−1) and stores it (after substituting +1 for 0 for the reciprocal sign since for X = 1 = e0 the LI image is x = 1.0 and uniquely defines X=1 and we can do away without a third state and use only one bit for the two states −1 and +1[clarification needed]) as the reciprocal sign rX. 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 X = 0 the LI image is x = 0.0 and uniquely defines X = 0 and we can do away without a third state and use only one bit for the two states −1 and +1[clarification needed]) as the sign sX. 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
- [math]\displaystyle{ \psi (X)= \begin{cases} X & \text{if } 0 \leq X\lt 1 \\ 1+ \psi (\ln X) & \text{if } X \geq 1 \end{cases} }[/math]
and it maps [math]\displaystyle{ [0,\infty ) }[/math] onto itself monotonically and so it is invertible on this interval. The inverse, the generalized exponential function, is defined by
- [math]\displaystyle{ \varphi (x)= \begin{cases} x & \text{if } 0\leq x\lt 1 \\ e^{\varphi (x-1)} & \text{if } x\geq 1 \end{cases} }[/math]
The density of values X represented by x has no discontinuities as we go from level ℓ to ℓ + 1 (a very desirable property) since:
- [math]\displaystyle{ \left. \frac{d\varphi(x)}{dx} \right|_{x=1} = \left.\frac{d\varphi(e^x)}{dx}\right|_{x=0}. }[/math]
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 X (not 0 or 1) as
- [math]\displaystyle{ X=s_X\varphi (x)^{r_X} }[/math]
where sX is the sign (additive inversion or not) of X and rX is the reciprocal sign (multiplicative inversion or not) as in the following equations:
- [math]\displaystyle{ s_X=\sgn(X),\, r_X=\sgn(|X|-|X|^{-1}),\, x=\psi (\max (|X|,|X|^{-1}))=\psi (|X|^{r_X}) }[/math]
whereas for X = 0 or 1, we have:
- [math]\displaystyle{ s_0=+1, r_0=+1, x=0.0, \, }[/math]
- [math]\displaystyle{ s_1=+1, r_1=+1, x=1.0. \, }[/math]
For example,
- [math]\displaystyle{ X=-\dfrac{1}{1234567}=-e^{-e^{e^{0.9711308}}} }[/math]
and its SLI representation is
- [math]\displaystyle{ x=-\varphi (3.9711308)^{-1}. }[/math]
See also
- Tetration
- Floating point (FP)
- Tapered floating point (TFP)
- Logarithmic number system (LNS)
- Level (logarithmic quantity)
References
- ↑ "Beyond floating point". Journal of the ACM 31 (2): 319–328. 1984. doi:10.1145/62.322429.
- ↑ "The Symmetric Level-Index System". IMA Journal of Numerical Analysis (Oxford University Press, Institute of Mathematics and Its Applications) 8 (4): 517-526. 1988-10-01. doi:10.1093/imanum/8.4.517. ISSN 0272-4979. OCLC 42026743. https://www.researchgate.net/publication/31393487_The_Symmetric_Level-Index_System. Retrieved 2018-07-10.
Further reading
- "Level-index arithmetic: An introductory survey". Numerical Analysis and Parallel Processing. Lecture Notes in Mathematics (LNM) 1397: 95-168. 1989. doi:10.1007/BFb0085718.
- "Root Squaring Using Level-Index Arithmetic". Computing (Springer-Verlag) 43 (2): 171-185. 1989-06-23. ISSN 0010-485X.
- "Rechnerarithmetik: Logarithmische Zahlensysteme" (in German). Friedrich-Schiller-Universität Jena. Summer 2008. pp. 21-22. https://users.fmi.uni-jena.de/~nez/rechnerarithmetik_5/folien/Rechnerarithmetik.2008.09.handout.pdf. [1]
- "The Higher Arithmetic". American Scientist 97 (5): 364-368. September–October 2009. doi:10.1511/2009.80.364. https://www.americanscientist.org/article/the-higher-arithmetic. Retrieved 2018-07-09. [2]. Also reprinted in: "Chapter 8: Higher Arithmetic". Foolproof, and Other Mathematical Meditations (1 ed.). The MIT Press. 2017. pp. 113-126. ISBN:0-26203686-X. ISBN 978-0-26203686-3. https://books.google.com/books?id=E4c3DwAAQBAJ.
External links
- sli-c-library (hosted by Google Code), "C++ Implementation of Symmetric Level-Index Arithmetic".
Original source: https://en.wikipedia.org/wiki/Symmetric level-index arithmetic.
Read more |