Skip to content

Commit 97fe2d8

Browse files
authored
airy/airyprime v0.6 deprecation fix (#100)
1 parent 04badd2 commit 97fe2d8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/differentiate.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ symbolic_derivative_1arg_list = [
172172
( :digamma, :( trigamma(x) ))
173173
( :invdigamma, :( inv(trigamma(invdigamma(x))) ))
174174
( :trigamma, :( polygamma(2, x) ))
175-
( :airy, :( airyprime(x) )) # note: only covers the 1-arg version
176-
( :airyprime, :( x * airy(x) ))
177175
( :airyai, :( airyaiprime(x) ))
178176
( :airybi, :( airybiprime(x) ))
179177
( :airyaiprime, :( x * airyai(x) ))
@@ -184,9 +182,14 @@ symbolic_derivative_1arg_list = [
184182
( :bessely1, :( (bessely0(x) - bessely(2, x)) / 2 ))
185183
( :erfcx, :( (2 * x * erfcx(x) - 2 / sqrt(pi)) ))
186184
( :dawson, :( (1 - 2x * dawson(x)) ))
187-
188185
]
189186

187+
# `airy` and `airyprime` are deprecated in v0.6 (see JuliaLang/julia#18050)
188+
if VERSION < v"0.6.0-dev.1767"
189+
push!(symbolic_derivative_1arg_list, (:airy, :(airyprime(x))))
190+
push!(symbolic_derivative_1arg_list, (:airyprime, :(x * airy(x))))
191+
end
192+
190193

191194
# This is the public interface for accessing the list of symbolic
192195
# derivatives. The format is a list of (Symbol,Expr) tuples

0 commit comments

Comments
 (0)