User Tools

Site Tools


crpl:docs:ln

<- 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
  • 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
ClearTraceLog
-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.txt · Last modified: 2022/07/05 14:12 by Karsten75