Navigation
Synopsis Calculate the logbase of a numeric value.
Function real log(num x, num base)
Usage import util::Math;
Description Calculate logbase of x.
Examples
rascal>import util::Math;
ok
rascal>log(9.99999999, 10)
real: 0.999999999570
rascal>log(10, 10)
real: 1.
rascal>log(256.0, 2)
real: 7.99999999999
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.