Klitos Kyriacou
07/06/2022, 9:19 AMlog(x, base)
took a default value of E
for base
so as to make log(x)
work just as it does in Java, C, and most other languages, instead of requiring the base to be explicitly passed? It would also form a counterpart of exp(x)
which already implicitly uses a base of E
.ilya.gorbunov
07/06/2022, 11:19 PMlog10
, log2
, and ln
(base E) functions.ilya.gorbunov
07/06/2022, 11:24 PMexp(x)
uses E
base implicitly because there's no way to make it use other base explicitly. There's pow
function for raising to the power of arbitrary bases.Klitos Kyriacou
07/07/2022, 8:14 AMln
function.