help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'math' (#rtl)

cotan

Return cotangent

Declaration

Source position: math.pp line 259

function cotan(

  x: float

):float;

Description

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

Errors

If x is zero then a overflow error will occur.

See also

tanh

  

Return hyperbolic tangent

Example

Program Example9;

{ Program to demonstrate the cotan function. }

Uses math;

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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505