Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

""" 

Tables of zeros of the Riemann-Zeta function 

 

AUTHORS: 

 

- William Stein: initial version 

 

- Jeroen Demeyer (2015-01-20): convert ``database_odlyzko_zeta`` to 

new-style package 

""" 

 

#***************************************************************************** 

# Copyright (C) 2004 William Stein <wstein@gmail.com> 

# Copyright (C) 2015 Jeroen Demeyer <jdemeyer@cage.ugent.be> 

# 

# This program is free software: you can redistribute it and/or modify 

# it under the terms of the GNU General Public License as published by 

# the Free Software Foundation, either version 2 of the License, or 

# (at your option) any later version. 

# http://www.gnu.org/licenses/ 

#***************************************************************************** 

 

import os 

 

from sage.structure.sage_object import load 

from sage.env import SAGE_SHARE 

from sage.misc.all import verbose 

 

def zeta_zeros(): 

r""" 

List of the imaginary parts of the first 2,001,052 zeros of the 

Riemann zeta function, accurate to within 4e-9. 

 

In order to use ``zeta_zeros()``, you will need to 

install the optional Odlyzko database package:: 

 

sage -i database_odlyzko_zeta 

 

You can see a list of all available optional packages with 

``sage --optional``. 

 

REFERENCES: 

 

- http://www.dtc.umn.edu/~odlyzko/zeta_tables/index.html 

 

EXAMPLES: 

 

The following example prints the imaginary part of the 13th 

nontrivial zero of the Riemann zeta function:: 

 

sage: zz = zeta_zeros() # optional - database_odlyzko_zeta 

sage: zz[12] # optional - database_odlyzko_zeta 

59.347044003 

sage: len(zz) # optional - database_odlyzko_zeta 

2001052 

""" 

sobj = os.path.join(SAGE_SHARE, 'odlyzko', 'zeros.sobj') 

verbose("Loading Odlyzko database from " + sobj) 

return load(sobj)