Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/quadratic_forms/genera/genus.py: Move imports from sage.func…
Browse files Browse the repository at this point in the history
…tions, sage.symbolic into method
  • Loading branch information
Matthias Koeppe committed Oct 18, 2021
1 parent c38d3d6 commit efb68ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sage/quadratic_forms/genera/genus.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
from sage.rings.finite_rings.finite_field_constructor import FiniteField
from copy import copy, deepcopy
from sage.misc.verbose import verbose
from sage.functions.gamma import gamma
from sage.functions.transcendental import zeta
from sage.symbolic.constants import pi
from sage.symbolic.ring import SR
from sage.quadratic_forms.special_values import quadratic_L_function__exact
lazy_import('sage.quadratic_forms.genera.normal_form', '_min_nonsquare')
lazy_import('sage.interfaces.magma', 'magma')
Expand Down Expand Up @@ -3232,10 +3228,14 @@ def _standard_mass(self):
sage: A = matrix.diagonal(ZZ, [1, 1, 1, 1])
sage: GS = Genus(A)
sage: GS._standard_mass()
sage: GS._standard_mass() # optional - sage.symbolic
1/48
"""
from sage.symbolic.constants import pi
from sage.symbolic.ring import SR
from sage.functions.transcendental import zeta
from sage.functions.gamma import gamma
n = self.dimension()
if n % 2 == 0:
s = n // 2
Expand Down Expand Up @@ -3283,7 +3283,7 @@ def mass(self, backend='sage'):
sage: from sage.quadratic_forms.genera.genus import genera
sage: G = genera((8,0), 1, even=True)[0]
sage: G.mass()
sage: G.mass() # optional - sage.symbolic
1/696729600
sage: G.mass(backend='magma') # optional - magma
1/696729600
Expand Down

0 comments on commit efb68ff

Please sign in to comment.