<- CRPL reference <- Math Commands

ln

ArgumentsResultNotation

ln

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

Examples

ShowTraceLog
ClearTraceLog
-1 ln trace #NaN
0 ln trace #-inf
1 ln trace #0
e ln trace #1
e dup mul ln trace #2