§21.10 Methods of Computation
Contents
- §21.10(i) General Riemann Theta Functions
- §21.10(ii) Riemann Theta Functions Associated with a Riemann Surface
§21.10(i) General Riemann Theta Functions
Although the defining Fourier series (21.2.1) is uniformly
convergent on compact sets, its evaluation is cumbersome when one or more of
the eigenvalues of
is near zero. Furthermore,
for fixed
different terms of the Fourier series dominate for
different values of
.
To overcome these obstacles, we compute instead the scaled function
(§21.2(i))
from the expansion
where
is the tolerated maximum absolute error for
. Here
,
,
,
,
and
Thus
is the set of all integer vectors that are contained in an
ellipsoid centered at the fractional part of
, and
whose size is determined by the allowed absolute error. The value of
is determined as follows. Let
be the length of the shortest
vector of the lattice
, and
be the Cholesky decomposition of
(Atkinson (1989, p. 254)). Then
is the greater of
and the smallest positive root of the equation
For the incomplete gamma function
, see §8.2(i).
The construction (21.10.2) amounts to determining all integer
vectors in a
-dimensional ellipsoid. For this purpose it is convenient to
have the ellipsoid as spherical as possible
(Siegel (1973, pp. 144–159), Heil (1995)).
Usually, (21.10.1) can also be used for the efficient
evaluation of
for fixed
and varying
, by addition of a few vectors to
the set
.
§21.10(ii) Riemann Theta Functions Associated with a Riemann Surface
In addition to evaluating the Fourier series, the main problem here is to compute a Riemann matrix originating from a Riemann surface. Various approaches are considered in the following references:

