<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#math_commands|Math Commands]] ===== ln ===== ^Arguments^Result^Notation^ 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