Sign in Join
FPDoc Onlineexperiment

Cotan function

In unit Math

Return cotangent.

Declaration

pascal
function Cotan(x: Float): Float

Description

Cotan returns the cotangent of it's argument x. The argument x must be in radians. x should be different from zero.

Errors

If x is zero then a overflow error will occur.

See also

Example: ex9

pascal
Program Example9;

{ Program to demonstrate the cotan function. }

Uses math;

begin
  writeln(cotan(pi/2));
  Writeln(cotan(pi/3));
  Writeln(cotan(pi/4));
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.