Skip to content

Commit c0d7ba3

Browse files
committed
Increase size of table for airy function zeros to 10
1 parent 2ddbd98 commit c0d7ba3

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ of the first values of `1, 2, 3, ...`. See the individual function docstrings f
2121
extents of the lookup tables.
2222

2323
### Limitations
24-
The first three zeros (`n` ∈ {1,2,3}) of any of the four functions treated here are always found
25-
correctly for any choice of `nu`. Similarly, when `nu ≤ 93`, any choice for `n` will produce a
26-
correct result. However, for `nu > 93` and `n > 3` some of the zeros may be skipped or found in the wrong order.
24+
The first ten zeros of any of the four functions treated here are always found
25+
correctly for any choice of `nu`. For `nu ≤ 150`, any choice for `n` will produce a
26+
correct result. However, for `nu > 150` and `n > 10` the results should not be trusted as some of the
27+
zeros immediately following the tenth may be skipped.
2728

2829
### Exported Functions
2930

src/FunctionZeros.jl

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,21 @@ Return the first few negative zeros of the functions `airyai`, `airybi`, `airyai
313313
- `(; ai, bi, aiprime, biprime)`: A named tuple containing the first few negative zeros of the functions
314314
`airyai`, `airybi`, `airyaiprime`, and `airybiprime`, respectively, as defined in the `SpecialFunctions`
315315
package. Each field in the named tuple consists of a tuple of `n` increasingly negative values. Here `n`
316-
is a small integer, say 2 or 3.
316+
is a small integer, currently 10.
317317
"""
318318
@inline function airy_zeros()
319-
ai = (-2.338107410459767, -4.087949444130973, -5.520559828095556)
320-
bi = (-1.173713222709127, -3.2710933028363516, -4.8307378416620095)
321-
aiprime = (-1.0187929716474717, -3.248197582179841, -4.820099211178737)
322-
biprime = (-2.2944396826141227, -4.073155089071816, -5.5123957296635835)
319+
ai = (-2.338107410459767, -4.087949444130973, -5.520559828095556, -6.7867080900717625,
320+
-7.94413358712085, -9.02265085334098, -10.040174341558084, -11.008524303733264,
321+
-11.936015563236262, -12.828776752865759)
322+
bi = (-1.173713222709127, -3.2710933028363516, -4.8307378416620095, -6.169852128310234,
323+
-7.3767620793677535, -8.491948846509374, -9.538194379346248, -10.529913506705357,
324+
-11.47695355127878, -12.38641713858274)
325+
aiprime = (-1.0187929716474717, -3.248197582179841, -4.820099211178737, -6.163307355639495,
326+
-7.372177255047777, -8.488486734019723, -9.535449052433547, -10.527660396957408,
327+
-11.475056633480246, -12.384788371845747)
328+
biprime = (-2.2944396826141227, -4.073155089071816, -5.5123957296635835, -6.781294445990291,
329+
-7.940178689168584, -9.019583358794248, -10.037696334908555, -11.00646266771229,
330+
-11.934261645014844, -12.82725830917722)
323331
#return (; ai, bi, aiprime, biprime) # Not compatible with Julia 1.0
324332
return (ai=ai, bi=bi, aiprime=aiprime, biprime=biprime) # Compatible with Julia 1.0
325333
end

0 commit comments

Comments
 (0)