20if (!function_exists(__NAMESPACE__ .
'\\asec')) {
21 function asec($complex): Complex
23 $complex = Complex::validateComplexArgument($complex);
25 if ($complex->getReal() == 0.0 && $complex->getImaginary() == 0.0) {
26 return new Complex(INF);
29 return acos(inverse($complex));
An exception for terminatinating execution or to throw for unit testing.