# \(\text{cot}\)¶

You can use this function to calculate the cotangent of an angle. The function uses the underlying platform specific C++ implementation.

You can use the `\cot`

backslash command to insert this function.

The following variants of this function are available:

\(\text{complex } \text{cot} \left ( \text{<angle>} \right )\)

Where `<value>`

can be any basic type.

Note that run-time type conversion allows the result of this function to be assigned to any basic type provided the returned value is compatible with that type. The compiler will also select appropriate variants of the function if the return type can be determined at compile time based on the supplied parameters.

The example below shows how you can use this function:

\[a = \left ( \text{cot } \frac{\pi}{6} \right ) ^ 2\]

\[\text{a = 3}\]