Function ln

  • Compute the natural logarithm of a number.

    Parameters

    • n: number

      The number. (n>0)

    Returns number | undefined

    Returns the logarithm of n to base e.

    Since

    0.5.0

    Example

    ln(2)
    // => 0.6931471805599453
    log(-1)
    // => undefined