ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
asinh.php
Go to the documentation of this file.
1<?php
2
10namespace Complex;
11
19if (!function_exists(__NAMESPACE__ . '\\asinh')) {
20 function asinh($complex): Complex
21 {
22 $complex = Complex::validateComplexArgument($complex);
23
24 if ($complex->isReal() && ($complex->getReal() > 1)) {
25 return new Complex(\asinh($complex->getReal()));
26 }
27
28 $asinh = clone $complex;
29 $asinh = $asinh->reverse()
30 ->invertReal();
31 $asinh = asin($asinh);
32 return $asinh->reverse()
33 ->invertImaginary();
34 }
35}
An exception for terminatinating execution or to throw for unit testing.