Cos function
Calculate cosine of angle.
Declaration
function Cos(d: ValReal): ValRealDescription
Cos returns the cosine of
X, where X is an angle, in radians.
If the absolute value of the argument is larger than 2^63, then the
result is undefined.Errors
None.
See also
Example: ex12
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.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
