log1p (Function)
Signature: log1p(x: t0) -> t0
Description: Computes ln(1 + x) without first rounding 1 + x, preserving small inputs. x = -1 yields negative infinity; x < -1 yields NaN.
Parameters
- x (
t0): The value added to 1 before the logarithm
Returns: t0
Example
print(log1p(0.1)) // 0.09531017980432487
print (log1p 0.1) // 0.09531017980432487