From 0c05d5e554bd9708c6ddf30775b271fddc638750 Mon Sep 17 00:00:00 2001 From: Jarrett Revels Date: Wed, 18 Jan 2017 12:50:05 -0500 Subject: [PATCH] airy/airyprime v0.6 deprecation fix --- src/differentiate.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/differentiate.jl b/src/differentiate.jl index e9b45b8..25429ed 100644 --- a/src/differentiate.jl +++ b/src/differentiate.jl @@ -172,8 +172,6 @@ symbolic_derivative_1arg_list = [ ( :digamma, :( trigamma(x) )) ( :invdigamma, :( inv(trigamma(invdigamma(x))) )) ( :trigamma, :( polygamma(2, x) )) - ( :airy, :( airyprime(x) )) # note: only covers the 1-arg version - ( :airyprime, :( x * airy(x) )) ( :airyai, :( airyaiprime(x) )) ( :airybi, :( airybiprime(x) )) ( :airyaiprime, :( x * airyai(x) )) @@ -184,9 +182,14 @@ symbolic_derivative_1arg_list = [ ( :bessely1, :( (bessely0(x) - bessely(2, x)) / 2 )) ( :erfcx, :( (2 * x * erfcx(x) - 2 / sqrt(pi)) )) ( :dawson, :( (1 - 2x * dawson(x)) )) - ] +# `airy` and `airyprime` are deprecated in v0.6 (see JuliaLang/julia#18050) +if VERSION < v"0.6.0-dev.1767" + push!(symbolic_derivative_1arg_list, (:airy, :(airyprime(x)))) + push!(symbolic_derivative_1arg_list, (:airyprime, :(x * airy(x)))) +end + # This is the public interface for accessing the list of symbolic # derivatives. The format is a list of (Symbol,Expr) tuples