Skip to content

Commit 1dc2c3f

Browse files
author
Matthias Koeppe
committed
src/sage/combinat/root_system/root_space.py: Add # optional
1 parent 930ff18 commit 1dc2c3f

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/sage/combinat/root_system/root_space.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,26 @@ def to_coroot_space_morphism(self):
115115
116116
sage: R = RootSystem(['A',3]).root_space()
117117
sage: alpha = R.simple_roots()
118-
sage: f = R.to_coroot_space_morphism()
119-
sage: f(alpha[1])
118+
sage: f = R.to_coroot_space_morphism() # optional - sage.graphs
119+
sage: f(alpha[1]) # optional - sage.graphs
120120
alphacheck[1]
121-
sage: f(alpha[1]+alpha[2])
121+
sage: f(alpha[1] + alpha[2]) # optional - sage.graphs
122122
alphacheck[1] + alphacheck[2]
123123
124124
sage: R = RootSystem(['A',3]).root_lattice()
125125
sage: alpha = R.simple_roots()
126-
sage: f = R.to_coroot_space_morphism()
127-
sage: f(alpha[1])
126+
sage: f = R.to_coroot_space_morphism() # optional - sage.graphs
127+
sage: f(alpha[1]) # optional - sage.graphs
128128
alphacheck[1]
129-
sage: f(alpha[1]+alpha[2])
129+
sage: f(alpha[1] + alpha[2]) # optional - sage.graphs
130130
alphacheck[1] + alphacheck[2]
131131
132132
sage: S = RootSystem(['G',2]).root_space()
133133
sage: alpha = S.simple_roots()
134-
sage: f = S.to_coroot_space_morphism()
135-
sage: f(alpha[1])
134+
sage: f = S.to_coroot_space_morphism() # optional - sage.graphs
135+
sage: f(alpha[1]) # optional - sage.graphs
136136
alphacheck[1]
137-
sage: f(alpha[1]+alpha[2])
137+
sage: f(alpha[1] + alpha[2]) # optional - sage.graphs
138138
alphacheck[1] + 3*alphacheck[2]
139139
"""
140140
R = self.base_ring()
@@ -194,7 +194,7 @@ def _to_classical_on_basis(self, i):
194194
EXAMPLES::
195195
196196
sage: L = RootSystem(["A",3,1]).root_space()
197-
sage: L._to_classical_on_basis(0)
197+
sage: L._to_classical_on_basis(0) # optional - sage.graphs
198198
-alpha[1] - alpha[2] - alpha[3]
199199
sage: L._to_classical_on_basis(1)
200200
alpha[1]
@@ -258,7 +258,7 @@ def scalar(self, lambdacheck):
258258
[ 0 -1 2 -1]
259259
[ 0 0 -2 2]
260260
261-
sage: L.cartan_type().cartan_matrix()
261+
sage: L.cartan_type().cartan_matrix() # optional - sage.graphs
262262
[ 2 -1 0 0]
263263
[-1 2 -1 0]
264264
[ 0 -1 2 -1]
@@ -278,12 +278,12 @@ def is_positive_root(self):
278278
279279
EXAMPLES::
280280
281-
sage: R=RootSystem(['A',3,1]).root_space()
282-
sage: B=R.basis()
283-
sage: w=B[0]+B[3]
281+
sage: R = RootSystem(['A',3,1]).root_space()
282+
sage: B = R.basis()
283+
sage: w = B[0] + B[3]
284284
sage: w.is_positive_root()
285285
True
286-
sage: w=B[1]-B[2]
286+
sage: w = B[1] - B[2]
287287
sage: w.is_positive_root()
288288
False
289289
"""
@@ -304,20 +304,20 @@ def associated_coroot(self):
304304
305305
sage: L = RootSystem(["B", 3]).root_space()
306306
sage: alpha = L.simple_roots()
307-
sage: alpha[1].associated_coroot()
307+
sage: alpha[1].associated_coroot() # optional - sage.graphs
308308
alphacheck[1]
309-
sage: alpha[1].associated_coroot().parent()
309+
sage: alpha[1].associated_coroot().parent() # optional - sage.graphs
310310
Coroot space over the Rational Field of the Root system of type ['B', 3]
311311
312-
sage: L.highest_root()
312+
sage: L.highest_root() # optional - sage.graphs
313313
alpha[1] + 2*alpha[2] + 2*alpha[3]
314-
sage: L.highest_root().associated_coroot()
314+
sage: L.highest_root().associated_coroot() # optional - sage.graphs
315315
alphacheck[1] + 2*alphacheck[2] + alphacheck[3]
316316
317317
sage: alpha = RootSystem(["B", 3]).root_lattice().simple_roots()
318-
sage: alpha[1].associated_coroot()
318+
sage: alpha[1].associated_coroot() # optional - sage.graphs
319319
alphacheck[1]
320-
sage: alpha[1].associated_coroot().parent()
320+
sage: alpha[1].associated_coroot().parent() # optional - sage.graphs
321321
Coroot lattice of the Root system of type ['B', 3]
322322
323323
"""
@@ -328,7 +328,7 @@ def associated_coroot(self):
328328

329329
def quantum_root(self):
330330
r"""
331-
Returns True if ``self`` is a quantum root and False otherwise.
331+
Return ``True`` if ``self`` is a quantum root and ``False`` otherwise.
332332
333333
INPUT:
334334

0 commit comments

Comments
 (0)