Computes the number i.

const i = Chalkboard.I(); // returns the complex number i
const i2 = Chalkboard.I(2); // returns the complex number -1
const i3 = Chalkboard.I(3); // returns the complex number -i
const i4 = Chalkboard.I(4); // returns the complex number 1
  • Parameters

    • Optionalexponent: number = 1

      The exponent to raise i to the power of

    Returns ChalkboardComplex