Skip to content

Commit

Permalink
added zeros of Airy function Bi
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatschke committed May 1, 2021
1 parent 73a1129 commit b89903a
Show file tree
Hide file tree
Showing 3 changed files with 1,075 additions and 0 deletions.
29 changes: 29 additions & 0 deletions data/Zeros/Zeros_of_the_Airy_function_Bi/generate.sage
@@ -0,0 +1,29 @@
import yaml
import os
import mpmath
from utils.utils import numbers_to_yaml
from utils.utils import real_interval_to_sage_string


path = 'data/Zeros/Zeros_of_the_Airy_function_Bi/'

prec10 = 100 #relative precision in base 10

mpmath.mp.dps = prec10 * 1.5
n_range = [1..1000] #index of zero

RIFprec = RealIntervalField(prec10 * 3.4 * 2)

numbers = {}
for n in n_range:
print("n:",n)
number = mpmath.mp.airybizero(n,derivative=0)
number_str = real_interval_to_sage_string(
RIFprec(number),
max_digits = prec10,
).replace('?','')

numbers[str(n)] = number_str

filename = os.path.join(path, 'numbers.yaml')
yaml.dump(numbers, stream = open(filename, 'w'), sort_keys = False)

0 comments on commit b89903a

Please sign in to comment.