COTAN — Cotangent function#
-
COTAN(X)#
COTAN(X)
computes the cotangent ofX
. Equivalent toCOS(x)
divided bySIN(x)
, or1 / TAN(x)
.- Parameters
X – The type shall be
REAL
orCOMPLEX
.- Returns
The return value has same type and kind as
X
, and its value is in radians.
- Standard:
GNU extension, enabled with
-fdec-math
.- Class:
Elemental function
- Syntax:
RESULT = COTAN(X)
- Example:
program test_cotan real(8) :: x = 0.165_8 x = cotan(x) end program test_cotan
- Specific names:
Name
Argument
Return type
Standard
COTAN(X)
REAL(4) X
REAL(4)
GNU extension
DCOTAN(X)
REAL(8) X
REAL(8)
GNU extension
- See also: