COS INDEX

COS _ _ _ _ _ _ _ _ _ _ _ _ operator

The cos operator returns the cosine of its argument.

syntax:

cos(<expression>) or cos <simple\_expression>

<expression> is any valid scalar REDUCE expression, <simple\_expression> is a single identifier or begins with a prefix operator name.

examples:




cos abc; 

  COS(ABC) 



cos(pi); 

  -1 



cos 4; 

  COS(4) 



on rounded; 


cos(4); 

  - 0.653643620864 



cos log 5; 

  - 0.0386319699339

cosreturns a numeric value only if rounded is on. Then the cosine is calculated to the current degree of floating point precision.