Skip to content

Commit

Permalink
Moved code in .is_isomorphic
Browse files Browse the repository at this point in the history
  • Loading branch information
S17A05 committed Feb 2, 2024
1 parent 2de9c56 commit a999a06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/algebras/quatalg/quaternion_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,10 +1323,10 @@ def is_isomorphic(self, A) -> bool:
if F != A.base_ring():
raise ValueError("both quaternion algebras must be defined over the same base ring")

try:
if is_RationalField(F):
return self.ramified_places(inf=False) == A.ramified_places(inf=False)
if is_RationalField(F):
return self.ramified_places(inf=False) == A.ramified_places(inf=False)

try:
ram_self = self.ramified_places(inf=True)
ram_A = A.ramified_places(inf=True)
return set(ram_self[0]) == set(ram_A[0]) and ram_self[1] == ram_A[1]
Expand Down

0 comments on commit a999a06

Please sign in to comment.