Skip to content

Commit 760372a

Browse files
committed
address reviewer's comments
1 parent aa15394 commit 760372a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/sage/rings/lazy_series.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4729,7 +4729,6 @@ def functorial_composition(self, *args):
47294729
47304730
labellings of their vertices with two 1's and two 2's.
47314731
4732-
47334732
The derivative of the symmetric function `\sum_n h_n`, times
47344733
`p_1` is the neutral element with respect to functorial
47354734
composition::
@@ -4787,16 +4786,16 @@ def g_cycle_type(s):
47874786
m = moebius(d)
47884787
if not m:
47894788
continue
4790-
u = s.power(k/d)
4791-
g_u = g[u.size()]
4789+
u = s.power(k // d)
4790+
g_u = g[sum(u)]
47924791
if g_u:
47934792
e += m * u.aut() * g_u.coefficient(u)
4794-
res.extend([k] * ZZ(e/k))
4793+
res.extend([k] * int(e // k))
47954794
res.reverse()
47964795
return Partition(res)
47974796

47984797
def coefficient(n):
4799-
res = p(0)
4798+
res = p.zero()
48004799
for s in Partitions(n):
48014800
t = g_cycle_type(s)
48024801
f_t = f[t.size()]

0 commit comments

Comments
 (0)