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