Previous Topic: ARC SINENext Topic: CONCATENATE


ARC TANGENT

Purpose

Returns the arc tangent of a numeric value that represents an angle in either degrees or radians.

Syntax

Arc tangent (degrees):

►►─┬─ ARCTAN-DEGREES ─┬─ ( value ) ───────────────────────────────────────────►◄
   ├─ ARCTANDEG ──────┤
   └─ ATAND ──────────┘

Arc tangent (radians):

►►─┬─ ARCTAN-RADIANS ─┬─ ( value ) ───────────────────────────────────────────►◄
   ├─ ARCTANRAD ──────┤
   └─ ATANR ──────────┘

Parameters

ARCTAN-DEGREES

Returns an arc tangent value in degrees.

ARCTAN-RADIANS

Returns an arc tangent value in radians.

value

Specifies the numeric value representing the angle, in degrees or radians, whose arc tangent is calculated.

Value can be:

Example

In the following example, the arc tangent (degrees) of 1.7321 is calculated and moved to WK-RESULT (PIC S999V9999):

  MOVE ATAND(1.7321) TO WK-RESULT.
Return value: 60.0007