Purpose
Returns the cosine of a numeric value that represents an angle in either degrees or radians.
Syntax
Cosine (degrees):
►►─┬─ COSINE-DEGREES ─┬─ ( value ) ───────────────────────────────────────────►◄ └─ COSDeg ─────────┘
Cosine (radians):
►►─┬─ COSINE-RADIANS ─┬─ ( value ) ───────────────────────────────────────────►◄ └─ COSRad ─────────┘
Parameters
Returns a cosine value in degrees.
Returns a cosine value in radians.
Specifies the numeric value representing the angle, in degrees or radians, whose cosine is calculated.
Value can be:
Example
In the following example, the cosine (degrees) of 60 is calculated and moved to WK-RESULT (PIC S999V9999):
MOVE COSD(60) TO WK-RESULT. Return value: 0.5
|
Copyright © 2014 CA.
All rights reserved.
|
|