Contents | Prev | Next

7.2.9 The cos function

Description

The cos function returns the cosine of the parameter passed to it. The type of the value returned by this function is always real.

Parameter

The cos function's only parameter is a numeric expression (i.e. an expression of integral type or of real type) which is an angle in radians.

Example

   cos(pi/3)  returns  0.5

Portability

Operating Systems: All
Standard Pascal: Yes

Contents | Prev | Next