File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/sage/schemes/projective Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1108,6 +1108,15 @@ def points_of_bounded_height(self, **kwds):
1108
1108
sage: len(sorted(list(P.points_of_bounded_height(bound=2))))
1109
1109
44
1110
1110
1111
+ ::
1112
+
1113
+ sage: R.<x> = QQ[]
1114
+ sage: K.<a> = NumberField(x^3 - 7)
1115
+ sage: O = K.maximal_order()
1116
+ sage: P.<z,w> = ProjectiveSpace(O, 1)
1117
+ sage: len(sorted(list(P.points_of_bounded_height(bound=2))))
1118
+ 28
1119
+
1111
1120
::
1112
1121
1113
1122
sage: P.<w,z> = ProjectiveSpace(ZZ, 1)
@@ -1154,7 +1163,7 @@ def points_of_bounded_height(self, **kwds):
1154
1163
elif R in NumberFields ():
1155
1164
# True for the rational field as well, so check is_RationalField first
1156
1165
field_type = True
1157
- elif (R is ZZ ) or isinstance (R , Order ):
1166
+ elif (( R is ZZ ) or isinstance (R , Order )) and R . is_integrally_closed (): # Ensure maximal order
1158
1167
is_ring_of_ints = True
1159
1168
else :
1160
1169
raise NotImplementedError ("self must be a projective space over a number field or a ring of integers" )
You can’t perform that action at this time.
0 commit comments