This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/419/. Also, please do not modify any references to the original work (if any) contained in this content.
The user inputs the number and the base, and the calculator outputs the logarithm of the number with respect to the given base, natural logarithm of the number and decimal logarithm of the number.
The logarithm of a number 'x' with respect to a base 'b' is denoted as logb(x) and is calculated as the exponent to which the base 'b' must be raised to equal the number 'x'.
For example, log2(8) = 3 because 23 = 8.
The natural logarithm (base e) of a number 'x' is denoted as ln(x) and is calculated as the logarithm of the number with respect to the mathematical constant 'e' (approximately equal to 2.718).
The decimal logarithm (base 10) of a number 'x' is denoted as log10(x) and is calculated as the logarithm of the number with respect to the base 10.
For example, log10(100) = 2 because 102 = 100.
The following formula is used to get the logarithm with base a provided that you can calculate the logarithm with base c: