Skip to content

Commit ab50225

Browse files
committed
fix promotion
1 parent 47071c2 commit ab50225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AiryFunctions/cairy.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function _airybi(z::Complex{T}) where T <: Union{Float32, Float64}
209209
elseif angle(z) < 7pi/8 || x > -4.5
210210
r = airybi_power_series(z)[1]
211211
else
212-
r = cispi(-1/6) * _airyai(z * cispi(-2/3)) + cispi(1/6) * _airyai(z*cispi(2/3))
212+
r = cispi(-T(1/6)) * _airyai(z * cispi(-T(2/3))) + cispi(T(1/6)) * _airyai(z*cispi(T(2/3)))
213213
end
214214

215215
return check_conj ? conj(r) : r
@@ -254,7 +254,7 @@ function _airybiprime(z::Complex{T}) where T <: Union{Float32, Float64}
254254
elseif angle(z) < 7pi/8 || x > -4.5
255255
r = airybi_power_series(z)[2]
256256
else
257-
r = cispi(-5/6) * airyaiprime(z * cispi(-2/3)) + cispi(5/6) * airyaiprime(z*cispi(2/3))
257+
r = cispi(-T(5/6)) * airyaiprime(z * cispi(-T(2/3))) + cispi(T(5/6)) * airyaiprime(z*cispi(T(2/3)))
258258
end
259259

260260
return check_conj ? conj(r) : r

0 commit comments

Comments
 (0)