ArticleslgStudy

mathematics

Logarithmic number system

Logarithmic number system is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Logarithmic number system rather than just read about it. In short: A logarithmic number system (LNS) is an arithmetic system used for representing real numbers in computer and digital hardware, especially for digital signal processing. Overview A number, X, is represented in an LNS by two components: the logarithm (x) of its absolute value (as a binary word usually in two's complement), and its sign bit (s): X→{x=logb|X|,s={0 if X>0,1 if X<0.

Key takeaways

  • Logarithmic number system belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Logarithmic number system to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Logarithmic number system from memory before moving on to harder problems.

Reference excerpt

A logarithmic number system (LNS) is an arithmetic system used for representing real numbers in computer and digital hardware, especially for digital signal processing.

Overview A number, X, is represented in an LNS by two components: the logarithm (x) of its absolute value (as a binary word usually in two's complement), and its sign bit (s):

X→{x=logb|X|,s={0 if X>0,1 if X<0. An LNS can be considered as a floating-point number with the significand being always equal to 1 and a non-integer exponent. 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 are calculated by the formulae

logb(|X|+|Y|)=x+sb(y−x), logb||X|−|Y||=x+db(y−x), where the "sum" function is defined by sb(z)=logb(1+bz), and the "difference" function by db(z)=logb|1−bz|. These functions sb(z) and db(z) are also known as Gaussian logarithms. 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 number systems. Nicholas Kingsbury and Peter Rayner introduced "logarithmic arithmetic" for digital signal processing (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 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 in the early 1800s.

Applications In the 1890s, the Spanish engineer Leonardo Torres Quevedo conceived 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⁡(1+10x), with the aim of extracting the logarithm of a sum as a sum of logarithms. A LNS has been used in the Gravity Pipe (GRAPE-5) special-purpose supercomputer that won the Gordon Bell Prize 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 (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-based applications where most arithmetic operations are multiplication or division.

See also Decibel Subnormal number Tapered floating point (TFP) Level-index arithmetic (LI) and symmetric level-index arithmetic (SLI) Gaussian logarithm Zech's logarithm ITU-T G.711 A-law algorithm μ-law algorithm Slide rule

References

Further reading Muller, Jean-Michel; Scherbyna, Alexandre; Tisserand, Arnaud (February 1998). "Semi-Logarithmic Number Systems" (PDF). IEEE Transactions on Computers. 47 (2): 145–151. doi:10.1109/12.663760. ISSN 0018-9340. Archived (PDF) from the original on 2018-07-13. Retrieved 2018-07-11. Previously published in: Muller, Jean-Michel; Scherbyna, Alexandre; Tisserand, Arnaud (July 1995). "Semi-Logarithmic Number Systems". Proceedings of the 12th IEEE Symposium on Computer Arithmetic (ARITH 12). Bath, UK. Kahrs, Mark; Brandenburg, Karlheinz, eds. (2002) [1998]. Applications of Digital Signal Processing to Audio and Acoustics (PDF). Kluwer Academic Publishing. ISBN 0-7923-8130-0. Archived (PDF) from the original on 2018-07-07. Retrieved 2018-07-07. (NB. Describes a 13-bit LNS used in Yamaha music synthesizers during the 1980s.) Kremer, Hermann (2002-08-29). "Gauss'sche Additionslogarithmen feiern 200. Geburtstag". de.sci.mathematik (in German). Retrieved 2018-07-07.{{cite web}}: CS1 maint: deprecated archival service (link) Zehendner, Eberhard (Summer 2008). "Rechnerarithmetik: Logarithmische Zahlensysteme" (PDF) (Lecture script) (in German). Friedrich-Schiller-Universität Jena. Archived (PDF) from the original on 2018-07-09. Retrieved 2018-07-09. [2] Hayes, Brian (September–October 2009). "The Higher Arithmetic". American Scientist. 97 (5): 364–368. doi:10.1511/2009.80.364. Archived from the original on 2018-07-09. Retrieved 2018-07-09. [3]. Also reprinted in: Hayes, Brian (2017). "Chapter 8: Higher Arithmetic". Foolproof, and Other Mathematical Meditations (1 ed.). The MIT Press. pp. 113–126. ISBN 978-0-26203686-3. ISBN 0-26203686-X. Amir Sabbagh, Molahosseini; de Sousa, Leonel Seabra; Chip-Hong Chang, eds. (2017-03-21). Embedded Systems Design with Special Arithmetic and Number Systems (1 ed.). Springer International Publishing AG. doi:10.1007/978-3-319-49742-6. ISBN 978-3-319-49741-9. LCCN 2017934074. (389 pages)

External links A site that lists LNS papers esprit – European Logarithmic Microprocessor (formerly the 'High Speed Logarithmic Arithmetic' (HSLA) project) A VHDL library for LNS hardware generation A Short Account on Leonardo Torres’ Endless Spindle

Worked examples

Example 1 — a first encounter with Logarithmic number system

Start with the simplest possible case. Write down what Logarithmic number system claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Logarithmic number system before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Logarithmic number system ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Logarithmic number system

In research
Logarithmic number system appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Logarithmic number system in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Logarithmic number system is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer arithmetic, Digital signal processing, Logarithms, so understanding it makes those chapters shorter.
In everyday life
Look for Logarithmic number system outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Logarithmic number system” →

How to study Logarithmic number system in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Logarithmic number system means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Logarithmic number system out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Logarithmic number system in simple terms?

A logarithmic number system (LNS) is an arithmetic system used for representing real numbers in computer and digital hardware, especially for digital signal processing. Overview A number, X, is represented in an LNS by two components: the logarithm (x) of its absolute value (as a binary word usuall…

Why does Logarithmic number system matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Logarithmic number system?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Logarithmic number system.

Tags

  • Computer arithmetic
  • Digital signal processing
  • Logarithms

Keep exploring