User Tools

Site Tools


crpl:docs:ln

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Math Commands

ln

ArgumentsResultNotation
A floating point or integerThe natural logf1 – f2

Description

The natural logarithm. Gives the magnitude of the number. On zero, returns -inf. Below zero, returns NaN, a special value that always causes failure when compared to other numbers. (ie. (NaN<0) ⇒ false, (Nan>=0) ⇒ false)

other logarithms

ln(x) = log(x, e) ln(x)/ln(10) = log10(x) ln(2)=0.6931-ish ln(e)=.999999 (odd, hunh?) ln(10)=2.3026-ish

Examples

ShowTraceLog
-1 ln trace #NaN
0 ln trace #-inf
1 ln trace #0
e ln trace #1
e dup mul ln trace #2
crpl/docs/ln.1425970565.txt.gz · Last modified: 2015/03/10 02:56 by warren