User Tools

Site Tools


4rpl:commands:log

This is an old revision of the document!


Index

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. Eg. (NaN<0) -> false, (Nan>=0) -> false

other logarithms \
log(x,10) = log10(x) \
log(x,e) = ln(x)

Examples

trace(log(2 .5))   #prints '-1'
trace(log(.25 .5)) #prints '2'

Index

4rpl/commands/log.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1