@@ -140,7 +140,7 @@ _abs_deriv(x) = signbit(x) ? -one(x) : one(x)
140140@define_diffrule SpecialFunctions. airybiprime (x) =
141141 :( $ x * SpecialFunctions. airybi ($ x) )
142142@define_diffrule SpecialFunctions. airyaix (x) =
143- :( sqrt ($ x) * SpecialFunctions . airyaix ($ x) + SpecialFunctions. airyaiprimex ($ x) )
143+ :( SpecialFunctions . airyaiprimex ($ x) + sqrt ($ x) * SpecialFunctions. airyaix ($ x) )
144144@define_diffrule SpecialFunctions. airyaiprimex (x) =
145145 :( $ x * SpecialFunctions. airyaix ($ x) + sqrt ($ x) * SpecialFunctions. airyaiprimex ($ x) )
146146@define_diffrule SpecialFunctions. besselj0 (x) =
@@ -171,15 +171,15 @@ _abs_deriv(x) = signbit(x) ? -one(x) : one(x)
171171@define_diffrule SpecialFunctions. besselk (ν, x) =
172172 :NaN , :( - (SpecialFunctions. besselk ($ ν - 1 , $ x) + SpecialFunctions. besselk ($ ν + 1 , $ x)) / 2 )
173173@define_diffrule SpecialFunctions. besselkx (ν, x) =
174- :NaN , :( - (SpecialFunctions. besselkx ($ ν - 1 , $ x) - 2 SpecialFunctions . besselkx ($ ν, $ x) + SpecialFunctions. besselkx ($ ν + 1 , $ x)) / 2 )
174+ :NaN , :( - (SpecialFunctions. besselkx ($ ν - 1 , $ x) + SpecialFunctions . besselkx ($ ν + 1 , $ x)) / 2 + SpecialFunctions. besselkx ($ ν, $ x) )
175175@define_diffrule SpecialFunctions. hankelh1 (ν, x) =
176176 :NaN , :( (SpecialFunctions. hankelh1 ($ ν - 1 , $ x) - SpecialFunctions. hankelh1 ($ ν + 1 , $ x)) / 2 )
177177@define_diffrule SpecialFunctions. hankelh1x (ν, x) =
178- :NaN , :( (SpecialFunctions. hankelh1x ($ ν - 1 , $ x) - 2im * SpecialFunctions. hankelh1x ($ ν, $ x) - SpecialFunctions. hankelh1x ($ ν + 1 , $ x)) / 2 )
178+ :NaN , :( (SpecialFunctions. hankelh1x ($ ν - 1 , $ x) - SpecialFunctions. hankelh1x ($ ν + 1 , $ x)) / 2 - im * SpecialFunctions. hankelh1x ($ ν, $ x) )
179179@define_diffrule SpecialFunctions. hankelh2 (ν, x) =
180180 :NaN , :( (SpecialFunctions. hankelh2 ($ ν - 1 , $ x) - SpecialFunctions. hankelh2 ($ ν + 1 , $ x)) / 2 )
181181@define_diffrule SpecialFunctions. hankelh2x (ν, x) =
182- :NaN , :( (SpecialFunctions. hankelh2x ($ ν - 1 , $ x) + 2im * SpecialFunctions. hankelh2x ($ ν, $ x) - SpecialFunctions. hankelh2x ($ ν + 1 , $ x)) / 2 )
182+ :NaN , :( (SpecialFunctions. hankelh2x ($ ν - 1 , $ x) - SpecialFunctions. hankelh2x ($ ν + 1 , $ x)) / 2 + im * SpecialFunctions. hankelh2x ($ ν, $ x) )
183183@define_diffrule SpecialFunctions. gamma (a, x) =
184184 :NaN , :(- exp (- $ x) * $ x^ ($ a - 1 ))
185185@define_diffrule SpecialFunctions. polygamma (m, x) =
0 commit comments