ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
csch.php
Go to the documentation of this file.
1 <?php
2 
10 namespace Complex;
11 
20 if (!function_exists(__NAMESPACE__ . '\\csch')) {
21  function csch($complex): Complex
22  {
23  $complex = Complex::validateComplexArgument($complex);
24 
25  if ($complex->getReal() == 0.0 && $complex->getImaginary() == 0.0) {
26  return new Complex(INF);
27  }
28 
29  return inverse(sinh($complex));
30  }
31 }