37 return $e->getMessage();
40 if (($ord < 0) || (
$x <= 0.0)) {
44 $fBk = self::calculate(
$x, $ord);
54 return self::besselK0($x);
56 return self::besselK1($x);
59 return self::besselK2($x, $ord);
66 $y = ($fNum2 * $fNum2);
69 (-0.57721566 +
$y * (0.42278420 +
$y * (0.23069756 +
$y * (0.3488590e-1 +
$y * (0.262698e-2 +
$y *
70 (0.10750e-3 +
$y * 0.74e-5))))));
75 return exp(-$x) / sqrt($x) *
76 (1.25331414 +
$y * (-0.7832358e-1 +
$y * (0.2189568e-1 +
$y * (-0.1062446e-1 +
$y *
77 (0.587872e-2 +
$y * (-0.251540e-2 +
$y * 0.53208e-3))))));
84 $y = ($fNum2 * $fNum2);
87 (1 +
$y * (0.15443144 +
$y * (-0.67278579 +
$y * (-0.18156897 +
$y * (-0.1919402e-1 +
$y *
88 (-0.110404e-2 +
$y * (-0.4686e-4))))))) / $x;
93 return exp(-$x) / sqrt($x) *
94 (1.25331414 +
$y * (0.23498619 +
$y * (-0.3655620e-1 +
$y * (0.1504268e-1 +
$y * (-0.780353e-2 +
$y *
95 (0.325614e-2 +
$y * (-0.68245e-3)))))));
101 $fBkm = self::besselK0($x);
102 $fBk = self::besselK1($x);
103 for (
$n = 1;
$n < $ord; ++
$n) {
104 $fBkp = $fBkm +
$n * $fTox * $fBk;
static BESSELK($x, $ord)
BESSELK.
static besselK2(float $x, int $ord)
static calculate(float $x, int $ord)
static besselK1(float $x)
static BESSELI($x, $ord)
BESSELI.
static besselK0(float $x)
static validateFloat($value)
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.
static validateInt($value)