Calculates the cotangent of any expression.
COT(val)
val |
- |
A scalar, series or table. |
A scalar, series, or table.
cot(-2*pi..pi/100..2*pi);gridhv;griddot;sety(-10,10)
displays the cotangent from -2π to 2π.
cot(pi/4)
returns 1.
cot(-2..0.1..2)
returns a 41 point series.
The cotangent is defined as:
for all complex z.
The function calculates in radians unless degrees are specified with the SETDEGREE function.
At or near Nπ radians, or for 180N degrees, where N is any integer, this function returns very large results or math errors.