Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
1,075 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
Oops, something went wrong.