Logarithmic number system
The Logarithmic Number System (LNS) is an arithmetic system used for representing real numbers in computer and digital hardware. It was first introduced in 1975 by Swartzlander and Alexopoulos[1] as an alternative to the Floating Point Number system, although the mathematical foundations for LNS trace back to Carl Friedrich Gauss, Z. Leonelli [1] and John Napier.
In LNS, a number, , is represented by the logarithm of its absolute value, , as follows:
- ,
where is a bit denoting the sign of ( if and if ).
The number is represented by a binary word which usually is in the two's complement format. LNS can be considered as a Floating Point number with the significand being always equal to 1. This formulation simplifies the operations of multiplication, division, roots and powers, since they are reduced down to addition, subtraction, multiplication and division respectively.
On the contrary, the operations of addition and subtraction are more complicated and they are calculated by the formula:
- ,
where , . and are also known as Gaussian logarithms. The simplification of multiplication, division, roots, and powers is counterbalanced by the cost of evaluating the and functions depicted in the following figures:

Applications
LNS has been used in the Gravity Pipe (GRAPE) special-purpose supercomputer that won the Gordon Bell Prize in 1999. LNS is commonly used as part of Hidden Markov models, such as the Viterbi algorithm, with applications in speech recognition and DNA sequencing.
References
- ^ E. E. Swartzlander and A. G. Alexopoulos, “The Sign/Logarithm Number System,” IEEE Transactions on Computers, vol. 24, pp. 1238-–-1242, Dec. 1975.