Experts Round Table Network

Clientside Technology => Javascript => Topic started by: Johnny26652 on October 06, 2007, 12:33:41 PM



Title: log values
Post by: Johnny26652 on October 06, 2007, 12:33:41 PM
is it possible to do calculations of natural logarithms in javascript?

like ln(0.85)*23 + 15 something like that


thanks
John


Title: Re: log values
Post by: GrandSchtroumpf on October 06, 2007, 04:11:56 PM
http://www.javascriptkit.com/javatutors/math.shtml

Math.log(0.85) should return the natural log of 0.85

Cheers.


Title: Re: log values
Post by: VGR on October 08, 2007, 12:29:07 PM
you may also implement an approximative algorithm yourself. It's 20 line sof simple code. . Log and Ln are approximated anyway.