Logarithmic number system
   HOME

TheInfoList



OR:

A logarithmic number system (LNS) is an arithmetic system used for representing
real number In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every real ...
s in computer and
digital hardware Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. This is in contrast to analog electronics and analog signals. Digital electronic circuits are usually ...
, especially for
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are ...
.


Overview

In an LNS, a number, X, is represented by the
logarithm In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number  to the base  is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 o ...
, x, of its
absolute value In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), an ...
as follows: :X\rightarrow\, where s is a bit denoting the sign of X (s=0 if X>0 and s=1 if X<0). The number x is represented by a binary word which usually is in the
two's complement Two's complement is a mathematical operation to reversibly convert a positive binary number into a negative binary number with equivalent (but negative) value, using the binary digit with the greatest place value (the leftmost bit in big- endian ...
format. An LNS can be considered as a
floating-point In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, called the significand, scaled by an integer exponent of a fixed base. For example, 12.345 can b ...
number with the
significand The significand (also mantissa or coefficient, sometimes also argument, or ambiguously fraction or characteristic) is part of a number in scientific notation or in floating-point representation, consisting of its significant digits. Depending on ...
being always equal to 1 and a non-integer
exponent Exponentiation is a mathematical operation, written as , involving two numbers, the '' base'' and the ''exponent'' or ''power'' , and pronounced as " (raised) to the (power of) ". When is a positive integer, exponentiation corresponds to re ...
. This formulation simplifies the operations of multiplication, division, powers and roots, since they are reduced down to addition, subtraction, multiplication, and division, respectively. On the other hand, the operations of addition and subtraction are more complicated and they are calculated by the formula: :\log_b(, X, +, Y, )=x+s_b(y-x) : \log_b(, , X, -, Y, , )=x+d_b(y-x), where the "sum" function is defined by s_b(z)=\log_b(1+b^z), and the "difference" function by d_b(z)=\log_b(, 1-b^z, ). These functions s_b(z) and d_b(z) are also known as
Gaussian logarithm In mathematics, addition and subtraction logarithms or Gaussian logarithms can be utilized to find the logarithms of the Addition, sum and Subtraction, difference of a pair of values whose logarithms are known, without knowing the values themselves ...
s. The simplification of multiplication, division, roots, and powers is counterbalanced by the cost of evaluating these functions for addition and subtraction. This added cost of evaluation may not be critical when using an LNS primarily for increasing the precision of floating-point math operations.


History

Logarithmic number systems have been independently invented and published at least three times as an alternative to fixed-point and
floating-point In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, called the significand, scaled by an integer exponent of a fixed base. For example, 12.345 can b ...
number systems. Nicholas Kingsbury and Peter Rayner introduced "logarithmic arithmetic" for
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are ...
(DSP) in 1971. A similar LNS named "signed logarithmic number system" (SLNS) was described in 1975 by Earl Swartzlander and Aristides Alexopoulos; rather than use two's complement notation for the logarithms, they
offset Offset or Off-Set may refer to: Arts, entertainment, and media * "Off-Set", a song by T.I. and Young Thug from the '' Furious 7: Original Motion Picture Soundtrack'' * ''Offset'' (EP), a 2018 EP by singer Kim Chung-ha * ''Offset'' (film), a 200 ...
them (scale the numbers being represented) to avoid negative logs. Samuel Lee and Albert Edgar described a similar system, which they called the "Focus" number system, in 1977. The mathematical foundations for addition and subtraction in an LNS trace back to Zecchini Leonelli and
Carl Friedrich Gauss Johann Carl Friedrich Gauss (; german: Gauß ; la, Carolus Fridericus Gauss; 30 April 177723 February 1855) was a German mathematician and physicist who made significant contributions to many fields in mathematics and science. Sometimes refer ...
in the early 1800s. In the late 1800s, the Spanish engineer
Leonardo Torres y Quevedo Leonardo Torres y Quevedo (; 28 December 1852 – 18 December 1936) was a Spanish civil engineer and mathematician of the late nineteenth and early twentieth centuries. Torres was a pioneer in the development of the radio control and automated ...
built a series of analogue calculating mechanical machines and developed one that could solve algebraic equations with eight terms, finding the roots, including the complex ones. One part of this machine called an "endless spindle" allowed the mechanical expression of the relation y=log(10^x+1), with the aim of extracting the logarithm of a sum as a sum of logarithms.


Applications

A LNS has been used in the
Gravity Pipe Gravity Pipe (abbreviated GRAPE) is a project which uses hardware acceleration to perform gravitational computations. Integrated with Beowulf-style commodity computers, the GRAPE system calculates the force of gravity that a given mass, such ...
( GRAPE-5) special-purpose supercomputer that won the
Gordon Bell Prize The Gordon Bell Prize, commonly referred to as the Nobel Prize of Supercomputing, is an award presented by the Association for Computing Machinery each year in conjunction with the SC Conference series (formerly known as the Supercomputing Conferen ...
in 1999. A substantial effort to explore the applicability of LNSs as a viable alternative to floating point for general-purpose processing of single-precision real numbers is described in the context of the ''European Logarithmic Microprocessor'' (ELM). A fabricated prototype of the processor, which has a 32-bit cotransformation-based LNS
arithmetic logic unit In computing, an arithmetic logic unit (ALU) is a Combinational logic, combinational digital circuit that performs arithmetic and bitwise operations on integer binary numbers. This is in contrast to a floating-point unit (FPU), which operates on ...
(ALU), demonstrated LNSs as a "more accurate alternative to floating-point", with improved speed. Further improvement of the LNS design based on the ELM architecture has shown its capability to offer significantly higher speed and accuracy than floating-point as well. LNSs are sometimes used in
FPGA A field-programmable gate array (FPGA) is an integrated circuit designed to be configured by a customer or a designer after manufacturinghence the term '' field-programmable''. The FPGA configuration is generally specified using a hardware de ...
-based applications where most arithmetic operations are multiplication or division.


See also

*
Decibel The decibel (symbol: dB) is a relative unit of measurement equal to one tenth of a bel (B). It expresses the ratio of two values of a power or root-power quantity on a logarithmic scale. Two signals whose levels differ by one decibel have a po ...
*
Subnormal number In computer science, subnormal numbers are the subset of denormalized numbers (sometimes called denormals) that fill the underflow gap around zero in floating-point arithmetic. Any non-zero number with magnitude smaller than the smallest normal n ...
*
Tapered floating point In computing, tapered floating point (TFP) is a format similar to floating point, but with variable-sized entries for the significand and exponent instead of the fixed-length entries found in normal floating-point formats. In addition to this, ta ...
(TFP) *
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. The symmetric form of the LI system and its arithmetic operations were presented by Clensh ...
(LI) and
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. The symmetric form of the LI system and its arithmetic operations were presented by Clensha ...
(SLI) *
Gaussian logarithm In mathematics, addition and subtraction logarithms or Gaussian logarithms can be utilized to find the logarithms of the Addition, sum and Subtraction, difference of a pair of values whose logarithms are known, without knowing the values themselves ...
*
Zech's logarithm Zech logarithms are used to implement addition in finite fields when elements are represented as powers of a generator \alpha. Zech logarithms are named after Julius Zech, and are also called Jacobi logarithms, after Carl G. J. Jacobi who used ...
* ITU-T G.711 *
A-law algorithm An A-law algorithm is a standard companding algorithm, used in European 8-bit PCM digital communications systems to optimize, i.e. modify, the dynamic range of an analog signal for digitizing. It is one of two versions of the G.711 standar ...
*
μ-law algorithm The μ-law algorithm (sometimes written Mu (letter), mu-law, often typographic approximation, approximated as u-law) is a companding algorithm, primarily used in 8-bit PCM Digital data, digital telecommunication systems in North America and Jap ...


References


Further reading

* Previously published in: * (NB. Describes a 13-bit LNS used in
Yamaha Yamaha may refer to: * Yamaha Corporation, a Japanese company with a wide range of products and services, established in 1887. The company is the largest shareholder of Yamaha Motor Company (below). ** Yamaha Music Foundation, an organization estab ...
music synthesizer Algorithmic composition is the technique of using algorithms to create music. Algorithms (or, at the very least, formal sets of rules) have been used to compose music for centuries; the procedures used to plot voice-leading in Western counterpo ...
s during the 1980s.) * *

*

Also reprinted in: * {{cite book , editor-last1=Amir Sabbagh , editor-first1=Molahosseini , editor-first2=Leonel Seabra , editor-last2=de Sousa , editor3=Chip-Hong Chang , title=Embedded Systems Design with Special Arithmetic and Number Systems , publisher=
Springer International Publishing AG Springer Nature or the Springer Nature Group is a German-British academic publishing company created by the May 2015 merger of Springer Science+Business Media and Holtzbrinck Publishing Group's Nature Publishing Group, Palgrave Macmillan, and Macm ...
, date=2017-03-21 , edition=1 , isbn=978-3-319-49741-9 , doi=10.1007/978-3-319-49742-6 , lccn=2017934074 , url=https://link.springer.com/book/10.1007/978-3-319-49742-6 (389 pages)


External links


A site that lists LNS papers

esprit – European Logarithmic Microprocessor (formerly the 'High Speed Logarithmic Arithmetic' (HSLA) project)

https://web.archive.org/web/20180707181644/http://www.ens-lyon.fr/LIP/Arenaire/Ware/FPLibrary/ --> A VHDL library for LNS hardware generationA Short Account on Leonardo Torres’ Endless Spindle
Computer arithmetic Digital signal processing Logarithms