matician - v2.0.0
    Preparing search index...

    Function log

    • Returns the natural logarithm (base e) of a number.

      Parameters

      • value: number

        The number to compute the natural logarithm of.

      Returns number

      The natural logarithm of the given number.

      Will throw an error if the input is not positive.

      log(Math.E);     // returns 1
      log(1); // returns 0