next up previous contents index
Next: CSeg Up: Functions and Procedures Previous: Copy

Cos

   

Declaration:

Function Cos (X : real) : Real;

Description:

Cos returns the cosine of X, where X is an angle, in radians.

Errors:

None.

See also:

Arctan, Sin

Example
Program Example12;

{ Program to demonstrate the Cos function. }

Var R : Real;

begin
  R:=Cos(Pi);    { R:=-1 }
  R:=Cos(Pi/2);  { R:=0  }
  R:=Cos(0);     { R:=1  }    
end.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998