System.Math.Cotan
Delphi
end;
function CoTan(const X: Single): Single;
end;
function CoTan(const X: Double): Double;
end;
function CoTan(const X: Extended): Extended;
C++
extern DELPHI_PACKAGE float __fastcall Cotan(const float X)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Calculates the cotangent of an angle.
Call Cotan to obtain the cotangent of X. The cotangent is calculated using the formula
1 / Tan(X)
Note: Do not call Cotan with X = 0.