User:Milton Beychok/Sandbox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Milton Beychok
imported>Milton Beychok
Line 36: Line 36:
===Numerical examples===
===Numerical examples===


==Bases and notations==


The base <math>b</math> must not be 0 nor 1. The most widely used bases for logarithms are 10, the mathematical constant ''[[e (mathematics)|e]]'' ≈ 2.71828 (also known as "Euler's number") and 2. When "log" is written without a base (''b'' missing from log<sub>''b''</sub>), the intent can sometimes be determined from the context in which it used:
* [[natural logarithm]] (log<sub>''[[e (mathematical constant)|e]]</sub>'', ln, log, or Ln) in [[mathematical analysis]], [[statistics]], [[economics]] and some [[engineering]] fields.  The reasons to consider ''e'' the [[natural logarithms#Why it is called "natural"|''natural'']] base for logarithms, though perhaps not obvious, are numerous and compelling.
* [[common logarithm]] (log<sub>10</sub> or simply log; sometimes lg) in various [[engineering]] fields, especially for power levels and power ratios, such as acoustical [[sound pressure]], and in logarithm [[Mathematical table|table]]s to be used to simplify hand calculations
* [[binary logarithm]] (log<sub>2</sub>; sometimes lg, lb, or ld), in [[computer science]] and [[information theory]]
* [[indefinite logarithm]] (Log or [log&nbsp;] or simply log) when the base is irrelevant, e.g. in [[computational complexity theory|complexity theory]] when describing the asymptotic behavior of [[algorithm]]s in [[big O notation]].
To avoid confusion, it is always best to specify the base if there is any chance of misinterpretation.
The notation "ln(''x'')" invariably means log<sub>e</sub>(''x''), i.e., the [[natural logarithm]] of ''x'', but the implied base for "log(''x'')" varies by discipline:
* Mathematicians understand "log(''x'')" to mean log<sub>e</sub>(''x''). Calculus textbooks will occasionally write "lg(''x'')" to represent "log<sub>10</sub>(''x'')".
* Many engineers, biologists, astronomers, and some others write only "ln(''x'')" or "log<sub>e</sub>(''x'')" when they mean the natural logarithm of ''x'', and take "log(''x'')" to mean log<sub>10</sub>(''x'') or, in [[computer science]], [[binary logarithm|log<sub>2</sub>]](''x'').
* On most calculators, the LOG button is log<sub>10</sub>(''x'') and LN is log<sub>e</sub>(''x'').
* In most commonly used computer [[programming language]]s, including [[C (programming language)|C]], [[C++]], [[Java (programming language)|Java]], <!--[[Pascal programming language|Pascal]], -->[[Fortran]], [[Ruby (programming language)|Ruby]], and [[BASIC programming language|BASIC]], the "log" function returns the natural logarithm. The base-10 function, if it is available, is generally "log10."
* Some people use Log(''x'') (capital ''L'') to mean log<sub>10</sub>(''x''), and use log(''x'') with a lowercase ''l'' to mean log<sub>''e''</sub>(''x'').
* The notation Log(''x'') is also used by mathematicians to denote the [[principal branch]] of the (natural) logarithm function.
* In some European countries, a frequently used notation is <sup>''b''</sup>log(''x'') instead of log<sub>''b''</sub>(''x'').<ref>{{cite web
| url = http://www.mathe-online.at/mathint/lexikon/l.html
| title = "Mathematisches Lexikon" at Mateh_online.at
}}</ref>
This chaos, historically, originates from the fact that the natural logarithm has nice mathematical properties (such as its [[derivative]] being 1/''x'', and having a simple definition), while the base 10 logarithms, or decimal logarithms, were more convenient for speeding calculations (back when they were used for that purpose).  Thus natural logarithms were only extensively used in fields like calculus while decimal logarithms were widely used elsewhere.
In computer science, the base 2 logarithm is sometimes written as lg(''x''), as suggested by [[Edward Reingold]] and popularized by [[Donald Knuth]].  However, lg(''x'') is also sometimes used for the common log, and lb(''x'') for the binary log.<ref name=gullberg>{{cite book | title = Mathematics: from the birth of numbers. | author =  Gullberg, Jan | publisher = W. W. Norton & Co | year = 1997 | isbn = 039304002X}}</ref>  In Russian literature, the notation lg(''x'') is also generally used for the base 10 logarithm.<ref>
{{cite web
| url = http://mathworld.wolfram.com/CommonLogarithm.html
| title = "Common Logarithm" at MathWorld
}}</ref>
In German, lg(''x'') also denotes the base 10 logarithm, while sometimes ld(''x'') or lb(''x'') is used for the base 2 logarithm.
The clear advice of the [[United States Department of Commerce]] [[National Institute of Standards and Technology]] is to follow the [[International Organization for Standardization|ISO]] standard ''Mathematical signs and symbols for use in physical sciences and technology, ISO 31-11:1992'', which suggests these notations:<ref>{{cite web | title = Guide for the Use of the International System of Units (SI) | author = B. N. Taylor | work = NIST Special Publication 811, 1995 Edition | publisher = US Department of Commerce | year = 1995 | url = http://physics.nist.gov/Pubs/SP811/sec10.html#10.1.2}}</ref>
* The notation "ln(''x'')" means log<sub>e</sub>(''x'');
* The notation "lg(''x'')" means log<sub>10</sub>(''x'');
* The notation "lb(''x'')" means log<sub>2</sub>(''x'').


==History==
==History==

Revision as of 20:28, 27 October 2008

In mathematics, the logarithm of a number to a given base is the power or exponent to which the base must be raised in order to produce the number.[1]

For example, the logarithm of 1000 to the base 10 is 3, because 10 raised to the power of 3 is 1000. As another example, the logarithm of 32 to the base 2 is 5, because 2 raised to the power 5 is 32.

The logarithm of to the base is written or, if the base is implicit, as . So, for a number , a base and an exponent :

The is a unique real number when and are restricted to positive real numbers and is negative for , zero for , and positive for .

Features of the logarithm

An important feature of logarithms is that they reduce multiplication to addition. That is, the logarithm of the product of two numbers is the sum of the logarithms of those numbers as in this identity:

Logarithms also reduce division to subtraction as in this identity:

And they reduce exponation to multiplication as in this identity:

And taking roots are reduced to division:

The inverse of the logarithm is call the antilogarithm and it is expressed in this identity:

Although the above practical advantages are not important for
numerical work today, they are used in graphical analysis (see Bode plot).

Numerical examples

History

References