Difference between revisions of "Documentation/How Tos/Calc: LOG function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
Line 3: Line 3:
 
== LOG ==
 
== LOG ==
 
Returns the logarithm of a number to the specified base.
 
Returns the logarithm of a number to the specified base.
 
  
 
=== Syntax: ===
 
=== Syntax: ===
 
<tt>'''LOG(number; base)'''</tt>
 
<tt>'''LOG(number; base)'''</tt>
 
: returns the logarithm to base <tt>'''base'''</tt> of <tt>'''number'''</tt>.
 
: returns the logarithm to base <tt>'''base'''</tt> of <tt>'''number'''</tt>.
 
  
 
=== Example: ===
 
=== Example: ===
Line 16: Line 14:
 
<tt>'''LOG(7^4; 7)'''</tt>
 
<tt>'''LOG(7^4; 7)'''</tt>
 
: returns <tt>'''4'''</tt>.
 
: returns <tt>'''4'''</tt>.
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 06:34, 2 March 2008


LOG

Returns the logarithm of a number to the specified base.

Syntax:

LOG(number; base)

returns the logarithm to base base of number.

Example:

LOG(10; 3)

returns the logarithm to base 3 of 10 (approximately 2.0959).

LOG(7^4; 7)

returns 4.

See also:

LOG10, LN, POWER

Mathematical functions

Personal tools