1
1
"""
2
2
airyai(x)
3
3
Airy function of the first kind ``\\ operatorname{Ai}(x)``.
4
- External links: [DLMF](https://dlmf.nist.gov/9.2), [Wikipedia](https://en.wikipedia.org/wiki/Airy_function)
5
- See also: [`airyaix`](@ref), [`airyaiprime`](@ref), [`airybi`](@ref)
6
4
"""
7
5
function airyai (x:: T ) where T
8
6
if x > zero (T)
@@ -15,15 +13,13 @@ function airyai(x::T) where T
15
13
Jmv = (Jv - sqrt (T (3 )) * Yv) / 2
16
14
return sqrt (x_abs) * (Jmv + Jv) / 3
17
15
elseif iszero (x)
18
- return inv ( 3 ^ ( T ( 2 ) / 3 ) * GAMMA_TWO_THIRDS (T) )
16
+ return T ( 0.3550280538878172 )
19
17
end
20
18
end
21
19
22
20
"""
23
21
airyaiprime(x)
24
22
Derivative of the Airy function of the first kind ``\\ operatorname{Ai}'(x)``.
25
- External links: [DLMF](https://dlmf.nist.gov/9.2), [Wikipedia](https://en.wikipedia.org/wiki/Airy_function)
26
- See also: [`airyaiprimex`](@ref), [`airyai`](@ref), [`airybi`](@ref)
27
23
"""
28
24
function airyaiprime (x:: T ) where T
29
25
if x > zero (T)
@@ -39,11 +35,10 @@ function airyaiprime(x::T) where T
39
35
return T (- 0.2588194037928068 )
40
36
end
41
37
end
38
+
42
39
"""
43
40
airybi(x)
44
41
Airy function of the second kind ``\\ operatorname{Bi}(x)``.
45
- External links: [DLMF](https://dlmf.nist.gov/9.2), [Wikipedia](https://en.wikipedia.org/wiki/Airy_function)
46
- See also: [`airybix`](@ref), [`airybiprime`](@ref), [`airyai`](@ref)
47
42
"""
48
43
function airybi (x:: T ) where T
49
44
if x > zero (T)
@@ -56,15 +51,13 @@ function airybi(x::T) where T
56
51
Jmv = (Jv - sqrt (T (3 )) * Yv) / 2
57
52
return sqrt (x_abs/ 3 ) * (Jmv - Jv)
58
53
elseif iszero (x)
59
- return inv ( 3 ^ ( T ( 1 ) / 6 ) * GAMMA_TWO_THIRDS (T) )
54
+ return T ( 0.6149266274460007 )
60
55
end
61
56
end
62
57
63
58
"""
64
59
airybiprime(x)
65
60
Derivative of the Airy function of the second kind ``\\ operatorname{Bi}'(x)``.
66
- External links: [DLMF](https://dlmf.nist.gov/9.2), [Wikipedia](https://en.wikipedia.org/wiki/Airy_function)
67
- See also: [`airybiprimex`](@ref), [`airybi`](@ref), [`airyai`](@ref)
68
61
"""
69
62
function airybiprime (x:: T ) where T
70
63
if x > zero (T)
@@ -80,9 +73,3 @@ function airybiprime(x::T) where T
80
73
return T (0.4482883573538264 )
81
74
end
82
75
end
83
-
84
- const GAMMA_TWO_THIRDS (:: Type{Float64} ) = 1.3541179394264005
85
- const GAMMA_TWO_THIRDS (:: Type{Float32} ) = 1.3541179394264005f0
86
-
87
- const GAMMA_ONE_THIRD (:: Type{Float64} ) = 2.6789385347077475
88
- const GAMMA_ONE_THIRD (:: Type{Float64} ) = 2.6789385347077475f0
0 commit comments