User Tools

Site Tools


crpl:docs:log

<- CRPL reference <- Math Commands

log

log

Description

Allows the performance of arbitrary based logarithms. See examples. 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
  • log(x,10) = log10(x)
  • log(x,e) = ln(x)

Examples

ShowTraceLog
ClearTraceLog
2 .5 log trace #-1
.25 .5 log trace #2
-1  1 log trace #NaN
.1 1 log trace #-inf
5 1 log trace #+inf
-1  2 log trace #NaN
0 2 log trace #-inf
4 2 log trace #2
27 3 log trace #3
.1 10 log trace #-1
crpl/docs/log.txt · Last modified: 2022/07/05 14:24 by Karsten75