We study several methods for the numerical computation of Petersson scalar products, and
in particular we prove a generalization of Haberland’s formula to any subgroup of finite
index
of
,
which gives a fast method to compute these scalar products when a Hecke eigenbasis
is not necessarily available.