This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:log [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:log [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | < |
+ | <= [[4rpl: | ||
====== log ====== | ====== log ====== | ||
- | log | + | log(<-value <-base) |
===== Description ===== | ===== 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 | 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 | + | other logarithms |
- | log(x,10) = log10(x) | + | <WRAP Indent> |
+ | log(x,10) = log10(x) \\ | ||
log(x,e) = ln(x) | log(x,e) = ln(x) | ||
+ | </ | ||
===== Examples ===== | ===== Examples ===== |