cot

fun cot(complex: Complex): Complex(source)

Computes the cotangent of a complex number. The cotangent is calculated using the formula cot(z) = cos(z) / sin(z), where z is the complex number.

Return

A new instance of Complex representing the cotangent of the given complex number.

Parameters

complex

The complex number for which the cotangent is calculated.