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

Commit

Permalink
Trac 6018: replace arith.gcd() and arith.lcm() by gcd() and lcm()
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbruin committed Jan 22, 2016
1 parent 36dcdc3 commit 08052f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/modular/dirichlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ def multiplicative_order(self):
"""
if self.parent().zeta.is_in_cache():
return self.element().additive_order()
return arith.lcm([z.multiplicative_order() for z in self.values_on_gens()])
return lcm([z.multiplicative_order() for z in self.values_on_gens()])

def primitive_character(self):
"""
Expand Down Expand Up @@ -2153,7 +2153,7 @@ def _zeta_powers(self):
if is_ComplexField(R):
for i in range(1, zeta_order):
a = a * zeta
a._set_multiplicative_order(zeta_order/arith.gcd(zeta_order, i))
a._set_multiplicative_order(zeta_order/gcd(zeta_order, i))
w.append(a)
else:
for i in range(1, zeta_order):
Expand Down

0 comments on commit 08052f9

Please sign in to comment.