Skip to content

Commit

Permalink
Document DomainError in airyaix and airyaiprimex (#19795)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored and simonbyrne committed Jan 1, 2017
1 parent 9cc7815 commit 35d1780
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/special/bessel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ airybiprime(z::Complex128) = _biry(z, Int32(1), Int32(1))
"""
airyaix(x)
Scaled Airy function of the first kind ``\\operatorname{Ai}(x) e^{\\frac{2}{3} x \\sqrt{x}}``.
Scaled Airy function of the first kind ``\\operatorname{Ai}(x) e^{\\frac{2}{3} x
\\sqrt{x}}``. Throws [`DomainError`](@ref) for negative `Real` arguments.
"""
function airyaix end
airyaix(z::Complex128) = _airy(z, Int32(0), Int32(2))

"""
airyaiprimex(x)
Scaled derivative of the Airy function of the first kind ``\\operatorname{Ai}'(x) e^{\\frac{2}{3} x \\sqrt{x}}``.
Scaled derivative of the Airy function of the first kind ``\\operatorname{Ai}'(x)
e^{\\frac{2}{3} x \\sqrt{x}}``. Throws [`DomainError`](@ref) for negative `Real` arguments.
"""
function airyaiprimex end
airyaiprimex(z::Complex128) = _airy(z, Int32(1), Int32(2))
Expand Down

0 comments on commit 35d1780

Please sign in to comment.