ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Cosecant.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Trig
;
4
5
use
PhpOffice\PhpSpreadsheet\Calculation\Exception
;
6
use
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Helpers
;
7
8
class
Cosecant
9
{
19
public
static
function
csc
(
$angle
)
20
{
21
try
{
22
$angle
=
Helpers::validateNumericNullBool
(
$angle
);
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
{
42
$angle
=
Helpers::validateNumericNullBool
(
$angle
);
43
}
catch
(
Exception
$e) {
44
return
$e->getMessage();
45
}
46
47
return
Helpers::verySmallDenominator
(1.0, sinh(
$angle
));
48
}
49
}
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Helpers\validateNumericNullBool
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
Definition:
Helpers.php:27
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Trig\Cosecant\csc
static csc($angle)
CSC.
Definition:
Cosecant.php:19
Helpers
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Helpers\verySmallDenominator
static verySmallDenominator(float $numerator, float $denominator)
Many functions accept null/false/true argument treated as 0/0/1.
Definition:
Helpers.php:15
$angle
$angle
Definition:
example_013.php:193
Exception
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Trig
Definition:
Cosecant.php:3
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Trig\Cosecant\csch
static csch($angle)
CSCH.
Definition:
Cosecant.php:39
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Trig\Cosecant
Definition:
Cosecant.php:8
php
Exception
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
MathTrig
Trig
Cosecant.php
Generated on Thu Jan 30 2025 19:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)