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



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

tan

Return tangent

Declaration

Source position: math.pp line 258

function tan(

  x: float

):float;

Description

Tan returns the tangent of x.

Errors

If x (normalized) is pi/2 or 3pi/2 then an overflow will occur.

See also

tanh

  

Return hyperbolic tangent

arcsin

  

Return inverse sine

sincos

  

Return sine and cosine of argument

arccos

  

Return inverse cosine

Example

Program Example47;

{ Program to demonstrate the Tan function. }

Uses math;

Procedure DoTan(Angle : Float);

begin
  Write('Angle : ',RadToDeg(Angle):8:6);
  Writeln(' Tangent : ',Tan(Angle):8:6);
end;

begin
  DoTan(0);
  DoTan(Pi);
  DoTan(Pi/3);
  DoTAn(Pi/4);
  DoTan(Pi/6);
end.

Notes

 No notes exist for this page yet. 





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