COS real-valued function COS real-valued function Syntax COS (angle) Function Return the trigonometric cosine of a given angle. Usage Considerations The angle parameter must be measured in degrees. The parameter is interpreted as modulo 360 degrees, but excessively large values may cause a loss of accuracy in the returned value. Parameter angle Real-valued expression that defines the angular value (in degrees) to be considered. Details Returns the trigonometric cosine of the argument, which is assumed to be in degrees. The resulting value is always in the range of -1.0 to +1.0, inclusive.
Examples COS(0.5) ;Returns 0.999962 COS(-5.462) ;Returns 0.9954596 COS(60) ;Returns 0.4999999 COS(1.3125E+2) ;Returns -0.6593457 NOTE: TYPE, PROMPT, and similar instructions output the results of the above examples as single-precision values. However, they are actually stored and manipulated as double- precision values. The LISTR monitor command will display real values to full precision. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 136