[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.54 Cos

Synopsis

 
function Cos (x: Real): Real;
or
 
function Cos (z: Complex): Complex;

Description

`Cos' returns the cosine of the argument. The result is in the range `-1 < Cos (x) < 1' for real arguments.

Conforming to

The function `Cos' is defined in ISO-7185 Pascal; its application to complex values is defined in ISO-10206 Extended Pascal.

Example

 
program CosDemo;
begin
  WriteLn (Cos (SqRt (2) / 2) : 0 : 5)
    { yields 0.5 since Cos (SqRt (2) / 2) = 0.5 }
end.

See also

section 9.12 ArcTan, section 9.255 Sin, section 9.135 Ln, section 9.13 Arg.



This document was generated by Frank Heckenbach on May, 10 2002 using texi2html