Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

ATAN - Arctangent

The ATAN function returns a numeric value in radians that approximates the arctangent of argument-1.
The type of this function is numeric.

Format


FUNCTION ATAN (argument-1)


Argument

  1. argument-1 must be class "numeric".

Returned value

  1. The returned value is the approximation of the arctangent of argument-1 and is greater than -pi/2 and less than +pi/2.


See also:
        TAN, SIN, ASIN, COS, ACOS

Example 9-4

...
DATA DIVISION.
WORKING-STORAGE SECTION.
01  R PIC 9V9999.
01  RES PIC -9.9999.
PROCEDURE DIVISION.
P1 SECTION.
MAIN.
    COMPUTE R = FUNCTION ATAN (-0.45).
    MOVE R TO RES.
    DISPLAY RES UPON T.
    STOP RUN.

Result:                0.4228