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

Commit 00e452e

Browse files
author
Matthias Koeppe
committed
InfinityRing, UnsignedInfinityRing: Add is_field method
1 parent 994c861 commit 00e452e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/sage/rings/infinity.py

+22
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,17 @@ def ngens(self):
592592
"""
593593
return 1
594594

595+
def is_field(self, proof=True):
596+
"""
597+
The unsigned infinity ring isn't a field.
598+
599+
EXAMPLES::
600+
601+
sage: UnsignedInfinityRing.is_field()
602+
False
603+
"""
604+
return False
605+
595606
def fraction_field(self):
596607
"""
597608
The unsigned infinity ring isn't an integral domain.
@@ -1010,6 +1021,17 @@ def __init__(self):
10101021
"""
10111022
Ring.__init__(self, self, names=('oo',), normalize=False)
10121023

1024+
def is_field(self, proof=True):
1025+
"""
1026+
The unsigned infinity ring isn't a field.
1027+
1028+
EXAMPLES::
1029+
1030+
sage: InfinityRing.is_field()
1031+
False
1032+
"""
1033+
return False
1034+
10131035
def fraction_field(self):
10141036
"""
10151037
This isn't really a ring, let alone an integral domain.

0 commit comments

Comments
 (0)