Chalkboard - v3.0.1
    Preparing search index...

    Function isInverse

    • Checks if two complex numbers are inverses of each other within a particular precision.

      Parameters

      • comp1: number | ChalkboardComplex

        The first complex number

      • comp2: number | ChalkboardComplex

        The second complex number

      • Optionalprecision: number = 0.000001

        The precision to check

      Returns boolean

      // Returns true
      const z = Chalkboard.comp.init(2, 3);
      const zi = Chalkboard.comp.invert(z);
      const yes = Chalkboard.comp.isInverse(z, zi);