Skip to content

Commit abe43d9

Browse files
committed
fix some wrong moves
1 parent 5b9dc23 commit abe43d9

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

src/sage/geometry/polyhedron/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3087,7 +3087,7 @@ def one_hundred_twenty_cell(self, exact=True, backend=None, construction='coxete
30873087
- ``construction`` -- the construction to use (string, default 'coxeter');
30883088
the other possibility is 'as_permutahedron'.
30893089
3090-
` EXAMPLES:
3090+
EXAMPLES:
30913091
30923092
The classical construction given by Coxeter in [Cox1969]_ is given by::
30933093

src/sage/groups/abelian_gps/abelian_group.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,10 +1175,10 @@ def random_element(self):
11751175
order = g.order()
11761176
if order is infinity:
11771177
order = 42 # infinite order; randomly chosen maximum
1178-
result *= g**(randint(0,order))
1178+
result *= g**(randint(0, order))
11791179
return result
11801180

1181-
def _repr_(self):
1181+
def _repr_(self) -> str:
11821182
"""
11831183
Return a string representation of ``self``.
11841184
@@ -1206,25 +1206,25 @@ def subgroup(self, gensH, names="f"):
12061206
12071207
EXAMPLES::
12081208
1209-
sage: # needs sage.libs.gap # optional - gap_package_polycyclic
1210-
sage: G.<a,b,c> = AbelianGroup(3, [2,3,4]); G
1211-
Multiplicative Abelian group isomorphic to C2 x C3 x C4
1212-
sage: H = G.subgroup([a*b,a]); H
1213-
Multiplicative Abelian subgroup isomorphic to C2 x C3 generated by {a*b, a}
1214-
sage: H < G
1215-
True
1216-
sage: F = G.subgroup([a,b^2])
1217-
sage: F
1218-
Multiplicative Abelian subgroup isomorphic to C2 x C3 generated by {a, b^2}
1219-
sage: F.gens()
1220-
(a, b^2)
1221-
sage: F = AbelianGroup(5, [30,64,729], names=list("abcde"))
1222-
sage: a,b,c,d,e = F.gens()
1223-
sage: F.subgroup([a,b])
1224-
Multiplicative Abelian subgroup isomorphic to Z x Z generated by {a, b}
1225-
sage: F.subgroup([c,e])
1226-
Multiplicative Abelian subgroup isomorphic to C2 x C3 x C5 x C729
1227-
generated by {c, e}
1209+
sage: # needs sage.libs.gap # optional - gap_package_polycyclic
1210+
sage: G.<a,b,c> = AbelianGroup(3, [2,3,4]); G
1211+
Multiplicative Abelian group isomorphic to C2 x C3 x C4
1212+
sage: H = G.subgroup([a*b,a]); H
1213+
Multiplicative Abelian subgroup isomorphic to C2 x C3 generated by {a*b, a}
1214+
sage: H < G
1215+
True
1216+
sage: F = G.subgroup([a,b^2])
1217+
sage: F
1218+
Multiplicative Abelian subgroup isomorphic to C2 x C3 generated by {a, b^2}
1219+
sage: F.gens()
1220+
(a, b^2)
1221+
sage: F = AbelianGroup(5, [30,64,729], names=list("abcde"))
1222+
sage: a,b,c,d,e = F.gens()
1223+
sage: F.subgroup([a,b])
1224+
Multiplicative Abelian subgroup isomorphic to Z x Z generated by {a, b}
1225+
sage: F.subgroup([c,e])
1226+
Multiplicative Abelian subgroup isomorphic to C2 x C3 x C5 x C729
1227+
generated by {c, e}
12281228
"""
12291229
G = self
12301230
gensH = tuple(gensH)

src/sage/interfaces/singular.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,16 +1228,16 @@ def current_ring(self):
12281228
else:
12291229
return None
12301230

1231-
def _tab_completion(self):
1231+
def _tab_completion(self) -> list:
12321232
"""
12331233
Return a list of all Singular commands.
12341234
12351235
EXAMPLES::
12361236
1237-
sage: singular._tab_completion()
1238-
['exteriorPower',
1239-
...
1240-
'crossprod']
1237+
sage: singular._tab_completion()
1238+
['exteriorPower',
1239+
...
1240+
'crossprod']
12411241
"""
12421242
p = re.compile("// *([a-z0-9A-Z_]*).*") #compiles regular expression
12431243
proclist = self.eval("listvar(proc)").splitlines()

src/sage/symbolic/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,8 @@ def _real_double_(self, R):
592592
"""
593593
EXAMPLES::
594594
595-
sage: pi._real_double_(RDF)
596-
3.141592653589793
595+
sage: pi._real_double_(RDF)
596+
3.141592653589793
597597
"""
598598
return R.pi()
599599

0 commit comments

Comments
 (0)