Skip to content

Commit 35d1780

Browse files
giordanosimonbyrne
authored andcommitted
Document DomainError in airyaix and airyaiprimex (#19795)
1 parent 9cc7815 commit 35d1780

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

base/special/bessel.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,17 @@ airybiprime(z::Complex128) = _biry(z, Int32(1), Int32(1))
7575
"""
7676
airyaix(x)
7777
78-
Scaled Airy function of the first kind ``\\operatorname{Ai}(x) e^{\\frac{2}{3} x \\sqrt{x}}``.
78+
Scaled Airy function of the first kind ``\\operatorname{Ai}(x) e^{\\frac{2}{3} x
79+
\\sqrt{x}}``. Throws [`DomainError`](@ref) for negative `Real` arguments.
7980
"""
8081
function airyaix end
8182
airyaix(z::Complex128) = _airy(z, Int32(0), Int32(2))
8283

8384
"""
8485
airyaiprimex(x)
8586
86-
Scaled derivative of the Airy function of the first kind ``\\operatorname{Ai}'(x) e^{\\frac{2}{3} x \\sqrt{x}}``.
87+
Scaled derivative of the Airy function of the first kind ``\\operatorname{Ai}'(x)
88+
e^{\\frac{2}{3} x \\sqrt{x}}``. Throws [`DomainError`](@ref) for negative `Real` arguments.
8789
"""
8890
function airyaiprimex end
8991
airyaiprimex(z::Complex128) = _airy(z, Int32(1), Int32(2))

0 commit comments

Comments
 (0)