Chalkboard - v3.0.1
    Preparing search index...

    Function Euler

    • Returns the value of Euler's totient function of a number.

      Parameters

      • num: number

        Number greater than 0

      Returns number

      // Returns 4, the number of integers less than or equal to 10 that are coprime to 10
      const totient = Chalkboard.numb.Euler(10);