ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Cosecant.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
8 class Cosecant
9 {
19  public static function csc($angle)
20  {
21  try {
23  } catch (Exception $e) {
24  return $e->getMessage();
25  }
26 
27  return Helpers::verySmallDenominator(1.0, sin($angle));
28  }
29 
39  public static function csch($angle)
40  {
41  try {
43  } catch (Exception $e) {
44  return $e->getMessage();
45  }
46 
47  return Helpers::verySmallDenominator(1.0, sinh($angle));
48  }
49 }
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
Definition: Helpers.php:27
static verySmallDenominator(float $numerator, float $denominator)
Many functions accept null/false/true argument treated as 0/0/1.
Definition: Helpers.php:15
$angle