@@ -226,14 +226,9 @@ for f in (
226
226
# base/special/log.jl
227
227
:log , :log1p ,
228
228
# base/special/gamma.jl
229
- :gamma , :lfact , :digamma , :trigamma , :zeta , :eta ,
230
- # base/special/erf.jl
231
- :erfcx , :erfi , :dawson ,
232
- # base/special/bessel.jl
233
- :airyai , :airyaiprime , :airybi , :airybiprime ,
234
- :besselj0 , :besselj1 , :bessely0 , :bessely1 ,
229
+ :gamma , :lfact ,
235
230
# base/math.jl
236
- :cbrt , :sinh , :cosh , :tanh , :atan , :asinh , :exp , :erf , :erfc , : exp2 ,
231
+ :cbrt , :sinh , :cosh , :tanh , :atan , :asinh , :exp , :exp2 ,
237
232
:expm1 , :exp10 , :sin , :cos , :tan , :asin , :acos , :acosh , :atanh ,
238
233
#= :log,=# :log2 , :log10 , :lgamma , #= :log1p,=# :sqrt ,
239
234
# base/floatfuncs.jl
@@ -252,8 +247,6 @@ for f in ( :acos_fast, :acosh_fast, :angle_fast, :asin_fast, :asinh_fast,
252
247
@eval FastMath Base. @dep_vectorize_1arg Number $ f
253
248
end
254
249
for f in (
255
- :invdigamma , # base/special/gamma.jl
256
- :erfinc , :erfcinv , # base/special/erf.jl
257
250
:trunc , :floor , :ceil , :round , # base/floatfuncs.jl
258
251
:rad2deg , :deg2rad , :exponent , :significand , # base/math.jl
259
252
:sind , :cosd , :tand , :asind , :acosd , :atand , :asecd , :acscd , :acotd , # base/special/trig.jl
292
285
# Deprecate @vectorize_2arg-vectorized functions from...
293
286
for f in (
294
287
# base/special/gamma.jl
295
- :polygamma , :zeta , :beta , :lbeta ,
296
- # base/special/bessel.jl
297
- :besseli , :besselix , :besselj , :besseljx ,
298
- :besselk , :besselkx , :bessely , :besselyx , :besselh ,
299
- :besselhx , :hankelh1 , :hankelh2 , :hankelh1x , :hankelh2x ,
288
+ :beta , :lbeta ,
300
289
# base/math.jl
301
290
:log , :hypot , :atan2 ,
302
291
)
672
661
# Deprecate isimag (#19947).
673
662
@deprecate isimag (z:: Number ) iszero (real (z))
674
663
675
- @deprecate airy (z:: Number ) airyai (z)
676
- @deprecate airyx (z:: Number ) airyaix (z)
677
- @deprecate airyprime (z:: Number ) airyaiprime (z)
678
- @deprecate airy {T<:Number} (x:: AbstractArray{T} ) airyai .(x)
679
- @deprecate airyx {T<:Number} (x:: AbstractArray{T} ) airyaix .(x)
680
- @deprecate airyprime {T<:Number} (x:: AbstractArray{T} ) airyprime .(x)
681
-
682
- function _airy (k:: Integer , z:: Complex128 )
683
- depwarn (" `airy(k,x)` is deprecated, use `airyai(x)`, `airyaiprime(x)`, `airybi(x)` or `airybiprime(x)` instead." ,:airy )
684
- id = Int32 (k== 1 || k== 3 )
685
- if k == 0 || k == 1
686
- return Base. Math. _airy (z, id, Int32 (1 ))
687
- elseif k == 2 || k == 3
688
- return Base. Math. _biry (z, id, Int32 (1 ))
689
- else
690
- throw (ArgumentError (" k must be between 0 and 3" ))
691
- end
692
- end
693
- function _airyx (k:: Integer , z:: Complex128 )
694
- depwarn (" `airyx(k,x)` is deprecated, use `airyaix(x)`, `airyaiprimex(x)`, `airybix(x)` or `airybiprimex(x)` instead." ,:airyx )
695
- id = Int32 (k== 1 || k== 3 )
696
- if k == 0 || k == 1
697
- return Base. Math. _airy (z, id, Int32 (2 ))
698
- elseif k == 2 || k == 3
699
- return Base. Math. _biry (z, id, Int32 (2 ))
700
- else
701
- throw (ArgumentError (" k must be between 0 and 3" ))
702
- end
703
- end
704
-
705
- for afn in (:airy ,:airyx )
706
- _afn = Symbol (" _" * string (afn))
707
- suf = string (afn)[5 : end ]
708
- @eval begin
709
- function $afn (k:: Integer , z:: Complex128 )
710
- afn = $ (QuoteNode (afn))
711
- suf = $ (QuoteNode (suf))
712
- depwarn (" `$afn (k,x)` is deprecated, use `airyai$suf (x)`, `airyaiprime$suf (x)`, `airybi$suf (x)` or `airybiprime$suf (x)` instead." ,$ (QuoteNode (afn)))
713
- $ _afn (k,z)
714
- end
715
-
716
- $ afn (k:: Integer , z:: Complex ) = $ afn (k, float (z))
717
- $ afn {T<:AbstractFloat} (k:: Integer , z:: Complex{T} ) = throw (MethodError ($ afn,(k,z)))
718
- $ afn (k:: Integer , z:: Complex64 ) = Complex64 ($ afn (k, Complex128 (z)))
719
- $ afn (k:: Integer , x:: Real ) = $ afn (k, float (x))
720
- $ afn (k:: Integer , x:: AbstractFloat ) = real ($ afn (k, complex (x)))
721
-
722
- function $afn {T<:Number} (k:: Number , x:: AbstractArray{T} )
723
- $ afn .(k,x)
724
- end
725
- function $afn {S<:Number} (k:: AbstractArray{S} , x:: Number )
726
- $ afn .(k,x)
727
- end
728
- function $afn {S<:Number,T<:Number} (k:: AbstractArray{S} , x:: AbstractArray{T} )
729
- $ afn .(k,x)
730
- end
731
- end
732
- end
733
-
734
664
# Deprecate vectorized xor in favor of compact broadcast syntax
735
665
@deprecate xor (a:: Bool , B:: BitArray ) xor .(a, B)
736
666
@deprecate xor (A:: BitArray , b:: Bool ) xor .(A, b)
@@ -1227,6 +1157,24 @@ for name in ("alnum", "alpha", "cntrl", "digit", "number", "graph",
1227
1157
@eval @deprecate ($ f)(s:: AbstractString ) all ($ f, s)
1228
1158
end
1229
1159
1160
+ # Special functions have been moved to a package
1161
+ for f in (:airyai , :airyaiprime , :airybi , :airybiprime , :airyaix , :airyaiprimex , :airybix , :airybiprimex ,
1162
+ :besselh , :besselhx , :besseli , :besselix , :besselj , :besselj0 , :besselj1 , :besseljx , :besselk ,
1163
+ :besselkx , :bessely , :bessely0 , :bessely1 , :besselyx ,
1164
+ :dawson , :erf , :erfc , :erfcinv , :erfcx , :erfi , :erfinv ,
1165
+ :eta , :zeta , :digamma , :invdigamma , :polygamma , :trigamma ,
1166
+ :hankelh1 , :hankelh1x , :hankelh2 , :hankelh2x ,
1167
+ :airy , :airyx , :airyprime )
1168
+ @eval begin
1169
+ function $f (args... ; kwargs... )
1170
+ error (string ($ f, args, " has been moved to the package SpecialFunctions.jl.\n " ,
1171
+ " Run Pkg.add(\" SpecialFunctions\" ) to install SpecialFunctions on Julia v0.6 and later,\n " ,
1172
+ " and then run `using SpecialFunctions`." ))
1173
+ end
1174
+ export $ f
1175
+ end
1176
+ end
1177
+
1230
1178
# END 0.6 deprecations
1231
1179
1232
1180
# BEGIN 1.0 deprecations
0 commit comments