System.Math.Sec
Delphi
function Sec(const X: Single): Single;
function Sec(const X: Double): Double;
function Sec(const X: Extended): Extended;
C++
extern DELPHI_PACKAGE float __fastcall Sec(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 secant of an angle.
Call Sec to obtain the secant of X, where X is an angle in radians. The secant is calculated using the formula 1 / Cos(X).