FUNCTION REFERENCE

cot

Cotangent of argument in radians.

Cotangent of argument in radians.

Syntax

y = cot(X)

Computed as 1./tan(X), as in MATLAB, elementwise on a real or complex double array. Out-of-domain real input gives a complex result.

Example

cot(pi/4)   % 1.0000

Differences from MATLAB: Character, logical and cell input stop with an error, as MATLAB's sinh does; single input is not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.