serve/vendor/markbaker/complex/classes/src/functionsasech.php

Function code for the complex asech() function

Functions

asech()

asech(\Complex\Complex|mixed  $complex) : \Complex\Complex

Returns the inverse hyperbolic secant of a complex number.

Parameters

\Complex\Complex|mixed $complex

Complex number or a numeric value.

Throws

\Complex\Exception

If argument isn't a valid real or complex number.

\InvalidArgumentException

If function would result in a division by zero

Returns

\Complex\Complex —

The inverse hyperbolic secant of the complex argument.