matician - v2.0.0
    Preparing search index...

    Function reciprocal

    • Returns the multiplicative inverse (1 divided by the number).

      Parameters

      • value: number

        The number to find the reciprocal of.

      Returns number

      The reciprocal (1 / value).

      Will throw an error if the input is 0.

      reciprocal(2);   // returns 0.5
      reciprocal(-4); // returns -0.25
      reciprocal(0); // throws