acos

fun acos(complex: Complex): Complex(source)

Computes the arc cosine (inverse cosine) of a complex number. The arc cosine is calculated using the formula: acos(z) = -i * ln(z + i * sqrt(1 - z²)) where z is the complex number.

Return

A new instance of Complex representing the arc cosine of the given complex number.

Parameters

complex

The complex number for which the arc cosine is calculated.