please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Math.log() Function

Name

Math.log() Function---compute a natural logarithm

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

Math.log(x)

Arguments

x

Any numeric value or expression greater than zero.

Returns

The natural logarithm of x.

Description

Math.log() computes logex, the natural logarithm of its argument. The argument must be greater than zero.

Usage

You can compute the base-10 and base-2 logarithms of a number with the following formulas:

log10x  =  log10(e*logex)

log2x  =  log2(e*logex)

These formulas translate into the following JavaScript functions:

function log10(x) { return Math.LOG10E * Math.log(x); }
function log2(x) { return  Math.LOG2E * Math.log(x); }

See Also

"Math", "Math.exp()", "Math.LOG2E", "Math.LOG10E"


Previous Home Next
Math.LN2 Book Index Math.LOG10E

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell

file: /Techref/language/java/script/definitive/refp_232.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/12/27 16:17,
TOP NEW HELP FIND: 
18.191.171.86:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://linistepper.com/techref/language/java/script/definitive/refp_232.htm"> [Chapter 21] Reference: Math.log()</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?