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

Commit bdf2f59

Browse files
author
Frédéric Chapoton
committed
trac 11109 fixing some doctests
1 parent c90648c commit bdf2f59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sage/categories/weyl_groups.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,12 @@ def stable_grothendieck_polynomial_as_series(w, order):
598598
from sage.rings.big_oh import O
599599
S = result.parent().base_ring()[['t']]
600600
t = S.gen()
601-
return (result.numerator() + O(t ** order)) / (result.denominator()+O(t**order))
601+
return (result.numerator() + O(t ** order)) / (result.denominator() + O(t**order))
602602

603603
@cached_in_parent_method
604604
def stable_grothendieck_polynomial_truncated(self, order):
605605
r"""
606-
Return the truncated stable Grothendieck polynomial indexed by ``self``
606+
Return the truncated stable Grothendieck polynomial indexed by ``self``.
607607
608608
INPUT:
609609
@@ -618,7 +618,7 @@ def stable_grothendieck_polynomial_truncated(self, order):
618618
EXAMPLES:
619619
620620
The following examples are taken from
621-
http://arxiv.org/pdf/0901.1506v1, p. 36::
621+
:arxiv:`0901.1506v1`, p. 36::
622622
623623
sage: W = WeylGroup(['A', 1, 1])
624624
sage: s = SymmetricFunctions(QQ).s()
@@ -635,9 +635,9 @@ def stable_grothendieck_polynomial_truncated(self, order):
635635
s[1, 1] + 2*s[1, 1, 1] + 3*s[1, 1, 1, 1] + 4*s[1, 1, 1, 1, 1] + 5*s[1, 1, 1, 1, 1, 1] + 6*s[1, 1, 1, 1, 1, 1, 1]
636636
637637
"""
638-
import sage.combinat.sf
639-
m = sage.combinat.sf.all.SFAMonomial(QQ)
640-
return m.from_polynomial_exp(self.stable_grothendieck_polynomial_as_series(order)(1))
638+
from sage.combinat.sf.sf import SymmetricFunctions
639+
m = SymmetricFunctions(QQ).m()
640+
return m.from_polynomial_exp(self.stable_grothendieck_polynomial_as_series(order).polynomial()(t=1))
641641

642642
@cached_in_parent_method
643643
def reflection_to_root(self):

0 commit comments

Comments
 (0)