Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/quadratic_forms/quadratic_form__mass.py
4100 views
1
"""
2
Shimura Mass
3
"""
4
######################################################
5
## Routines to compute the mass of a quadratic form ##
6
######################################################
7
8
## Import all general mass finding routines
9
from sage.quadratic_forms.quadratic_form__mass__Siegel_densities import \
10
mass__by_Siegel_densities, \
11
Pall_mass_density_at_odd_prime, \
12
Watson_mass_at_2, \
13
Kitaoka_mass_at_2, \
14
mass_at_two_by_counting_mod_power
15
from sage.quadratic_forms.quadratic_form__mass__Conway_Sloane_masses import \
16
parity, \
17
is_even, \
18
is_odd, \
19
conway_species_list_at_odd_prime, \
20
conway_species_list_at_2, \
21
conway_octane_of_this_unimodular_Jordan_block_at_2, \
22
conway_diagonal_factor, \
23
conway_cross_product_doubled_power, \
24
conway_type_factor, \
25
conway_p_mass, \
26
conway_standard_p_mass, \
27
conway_standard_mass, \
28
conway_mass
29
# conway_generic_mass, \
30
# conway_p_mass_adjustment
31
32
###################################################
33
34
35
def shimura_mass__maximal(self,):
36
"""
37
Use Shimura's exact mass formula to compute the mass of a maximal
38
quadratic lattice. This works for any totally real number field,
39
but has a small technical restriction when `n` is odd.
40
41
INPUT:
42
none
43
44
OUTPUT:
45
a rational number
46
47
EXAMPLE::
48
49
sage: Q = DiagonalQuadraticForm(ZZ, [1,1,1])
50
sage: Q.shimura_mass__maximal()
51
52
"""
53
pass
54
55
56
57
def GHY_mass__maximal(self):
58
"""
59
Use the GHY formula to compute the mass of a (maximal?) quadratic
60
lattice. This works for any number field.
61
62
Reference: See [GHY, Prop 7.4 and 7.5, p121] and [GY, Thrm 10.20, p25].
63
64
INPUT:
65
none
66
67
OUTPUT:
68
a rational number
69
70
EXAMPLE::
71
72
sage: Q = DiagonalQuadraticForm(ZZ, [1,1,1])
73
sage: Q.GHY_mass__maximal()
74
75
"""
76
pass
77
78