Skip to content

Commit 919ec6f

Browse files
author
Matthias Koeppe
committed
src/sage/algebras/finite_gca.py: Remove dubious '# needs sage.libs.singular'; doctest cosmetics
1 parent bd006df commit 919ec6f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/sage/algebras/finite_gca.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,15 @@ class FiniteGCAlgebra(CombinatorialFreeModule, Algebra):
9090
9191
sage: A.<x,y,z,t> = GradedCommutativeAlgebra(QQ, degrees=(1,2,2,3), max_degree=6)
9292
sage: A
93-
Graded commutative algebra with generators ('x', 'y', 'z', 't') in degrees (1, 2, 2, 3) with maximal degree 6
93+
Graded commutative algebra with generators ('x', 'y', 'z', 't')
94+
in degrees (1, 2, 2, 3) with maximal degree 6
9495
sage: t*x + x*t
9596
0
9697
sage: x^2
9798
0
9899
sage: x*t^2
99100
0
100-
sage: x*y^2+z*t
101+
sage: x*y^2 + z*t
101102
x*y^2 + z*t
102103
103104
The generators can be returned with :meth:`algebra_generators`::
@@ -115,7 +116,9 @@ class FiniteGCAlgebra(CombinatorialFreeModule, Algebra):
115116
Depending on the context, the multiplication can be given a different
116117
symbol::
117118
118-
sage: A.<x,y,z,t> = GradedCommutativeAlgebra(QQ, degrees=(1,2,6,6), max_degree=10, mul_symbol='⌣', mul_latex_symbol=r'\smile')
119+
sage: A.<x,y,z,t> = GradedCommutativeAlgebra(QQ, degrees=(1,2,6,6), max_degree=10,
120+
....: mul_symbol='⌣',
121+
....: mul_latex_symbol=r'\smile')
119122
sage: x*y^2 + x*t
120123
x⌣y^2 + x⌣t
121124
sage: latex(x*y^2 - z*x)
@@ -127,7 +130,7 @@ class FiniteGCAlgebra(CombinatorialFreeModule, Algebra):
127130
omitted, an instance of the class
128131
:class:`sage.algebras.commutative_dga.GCAlgebra` is created instead::
129132
130-
sage: A.<x,y,z,t> = GradedCommutativeAlgebra(QQ, degrees=(1,2,6,6)) # needs sage.libs.singular
133+
sage: A.<x,y,z,t> = GradedCommutativeAlgebra(QQ, degrees=(1,2,6,6))
131134
sage: type(A)
132135
<class 'sage.algebras.commutative_dga.GCAlgebra_with_category'>
133136

0 commit comments

Comments
 (0)