Skip to content

Commit

Permalink
change polynomial ring notation to remove lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonwalters committed Jul 31, 2024
1 parent 8ff6414 commit 12158a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/combinat/symmetric_group_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,8 @@ def all_roots_field():
required_square_roots = flatten([[QQ(q).numerator(),QQ(q).denominator()] if q in QQ else q for q in required_square_roots])
K = self.base_ring()
for n in set(required_square_roots):
R.<x> = PolynomialRing(K)
R = PolynomialRing(K, 'x')
x = R.gen()
if (x**2 - n).is_irreducible():
gen_name = "sqrt"+str(n).replace("/","over")
K = K.extension(sqrt(n).minpoly(),names=gen_name)
Expand Down

0 comments on commit 12158a3

Please sign in to comment.