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

    Function parseAngle

    • Parses a string expression representing an angle into a number. Supports mathematical constants (pi) and functions (sin, cos).

      Parameters

      • angle: undefined | string | number

        The angle expression (e.g., "pi/2", "0.785") or a number.

      Returns number

      The parsed angle in radians.

      If the angle parameter is missing or the expression is invalid.