ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Secant.php
Go to the documentation of this file.
1<?php
2
4
7
8class Secant
9{
19 public static function sec($angle)
20 {
21 try {
23 } catch (Exception $e) {
24 return $e->getMessage();
25 }
26
27 return Helpers::verySmallDenominator(1.0, cos($angle));
28 }
29
39 public static function sech($angle)
40 {
41 try {
43 } catch (Exception $e) {
44 return $e->getMessage();
45 }
46
47 return Helpers::verySmallDenominator(1.0, cosh($angle));
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
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