q5m.js - Quantum Computing Library - v0.1.1
    Preparing search index...

    Function complex

    • Creates a complex number from its real and imaginary parts. Uses caching for performance optimization.

      Parameters

      • re: number

        The real part of the complex number.

      • im: number = 0

        The imaginary part of the complex number. Defaults to 0.

      Returns Complex

      A Complex number instance.