Cos
(Engine-Level Function)
Description: | Returns the trigonometric cosine of an angle in radians. |
Returns: | Numeric |
Usage: | Script or steady state. |
Function Groups: | Trigonometric Math |
Related to: | ACos | ASin | ATan | Sin | Tan |
Format: | Cos(Angle) |
Parameters: |
Angle |
Required. Any numeric expression giving the angle in radians. |
Comments: | The returned value is a number in the range of -1.00 to +1.00. To convert an angle from degrees to radians multiply by \pi / 180 or (approximately) 0.0174533. |
Example:
X = Cos(180 * \Pi / 180);
The value of x will be - 1.