Node:Sin, Next:, Previous:shr, Up:Reference



Sin

Synopsis


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

Description

Sin returns the sine of the argument. The result is in the range -1 <= Sin (x) <= 1 for real arguments.

Conforming to

The function Sin is defined in ISO 7185 Pascal; its application to complex values is defined in ISO 10206 Extended Pascal.

Example


program SinDemo;
begin
  { yields 0.5 since Sin (Pi / 6) = 0.5 }
  WriteLn (Sin (Pi / 6) : 0 : 5)
end.

See also

ArcTan, Cos, Ln, Arg.