ln (Function)

Signature: ln(x: float) -> float

Description: The natural logarithm of a float. Total: zero yields negative infinity and a negative argument NaN. Named ln so programs keep the name log for their loggers.

Parameters

  • x (float): The float to take the logarithm of

Returns: float

Example

ln(1.0)  // 0.0
ln 1.0  // 0.0