Skip to content

Commit 1cc57e2

Browse files
committed
Add new special functions.
1 parent cd6b79f commit 1cc57e2

16 files changed

+12164
-1582
lines changed

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,49 @@ $pFq = Special::generalizedHypergeometric($p, $q, $a, $b, $c, $z);
365365
$₁F₁ = Special::confluentHypergeometric($a, $b, $z);
366366
$₂F₁ = Special::hypergeometric($a, $b, $c, $z);
367367

368+
// Bessel functions
369+
// Bessel functions of the first kind J₀(x), J₁(x), Jₙ(x)
370+
$J₀ = Special::besselJ0($x);
371+
$J₁ = Special::besselJ1($x);
372+
$Jₙ = Special::besselJn($n, $x);
373+
374+
// Bessel functions of the second kind Y₀(x), Y₁(x), Yₙ(x)
375+
$Y₀ = Special::besselY0($x);
376+
$Y₁ = Special::besselY1($x);
377+
$Yₙ = Special::besselYn($n, $x);
378+
379+
// Modified Bessel functions of the first kind I₀(x), I₁(x), Iᵥ(x)
380+
$I₀ = Special::besselI0($x);
381+
$I₁ = Special::besselI1($x);
382+
$Iᵥ = Special::besselIv($v, $x);
383+
384+
// Modified Bessel functions of the second kind K₀(x), K₁(x), Kᵥ(x)
385+
$K₀ = Special::besselK0($x);
386+
$K₁ = Special::besselK1($x);
387+
$Kᵥ = Special::besselKv($v, $x);
388+
389+
// Airy functions Ai(x), Bi(x) and their derivatives Ai'(x), Bi'(x)
390+
$Ai = Special::airyAi($x);
391+
$Bi = Special::airyBi($x);
392+
$Aip = Special::airyAip($x); // Ai'(x)
393+
$Bip = Special::airyBip($x); // Bi'(x)
394+
395+
// Orthogonal polynomials
396+
// Legendre polynomials Pₙ(x)
397+
$Pₙ = Special::legendreP($n, $x);
398+
399+
// Chebyshev polynomials of the first kind Tₙ(x)
400+
$Tₙ = Special::chebyshevT($n, $x);
401+
402+
// Chebyshev polynomials of the second kind Uₙ(x)
403+
$Uₙ = Special::chebyshevU($n, $x);
404+
405+
// Hermite polynomials Hₙ(x) (physicist's form)
406+
$Hₙ = Special::hermiteH($n, $x);
407+
408+
// Hermite polynomials Heₙ(x) (probabilist's form)
409+
$Heₙ = Special::hermiteHe($n, $x);
410+
368411
// Sign function (also known as signum or sgn)
369412
$x = 4;
370413
$sign = Special::signum($x); // same as sgn

0 commit comments

Comments
 (0)