9.76. COTAN

9.76 COTAN — Cotangent function

Description:

COTAN(X) computes the cotangent of X. Equivalent to COS(x) divided by SIN(x), or 1 / TAN(x).

This function is for compatibility only and should be avoided in favor of standard constructs wherever possible.

Standard:

GNU Extension, enabled with -fdec-math.

Class:

Elemental function

Syntax:

RESULT = COTAN(X)

Arguments:
X The type shall be REAL or COMPLEX.
Return value:

The return value has same type and kind as X, and its value is in radians.

Example:
登录查看完整内容