@nevware21/ts-utils
    Preparing search index...

    Function mathAtan

    The mathAtan() function returns the arctangent of a number.

    0.12.0

    A number

    The arctangent (in radians) of the given number, a value between -π/2 and π/2

    mathAtan(0); // 0
    mathAtan(1); // 0.7853981633974483 (approximately π/4)
    mathAtan(Infinity); // 1.5707963267948966 (π/2)
    • Returns the arctangent of a number.

      Parameters

      • x: number

        A numeric expression for which the arctangent is needed.

      Returns number