System.Math.Cotan

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CoTan(const X: Single): Single;
function CoTan(const X: Double): Double;
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.

See Also