#14542: Implement arithmetic product of cycle index series
----------------------------------------+-----------------------------------
Reporter: agd | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.11
Component: combinatorics | Resolution:
Keywords: species, cycle index | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------------------+-----------------------------------
Comment (by darij):
Thanks for the update! I'll have to take a closer look at it.
Meanwhile, are you sure you want those {{{assert}}}s in lines 606-607? I
don't know what a typical use case of this method should be, but I can
imagine applying it in a case where the **base ring** is not discrete (i.
e., you cannot check for equality) and these {{{assert}}}s will throw a
NotImplemented. Think of a lazy power series ring in 2 variables
implemented as a lazy power series ring over a lazy power series ring;
then the base ring itself is lazy and this stuff breaks. I have a similar
issue with your #14543 patch. Maybe add a {{{check_input=True}}} keyword
which can optionally be set to {{{False}}} to avoid these {{{assert}}}s?
In other news:
{{{
sage: L = LazyPowerSeriesRing(QQ)
sage: L.sum_generator([L([0]),L([1])]).coefficients(10)
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1]
sage: L.sum_generator([L([0]),L([1]),L([0])]).coefficients(10)
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1]
}}}
I don't think the 1 repeats because it's the last element -- it is not, in
the second case. I think it repeats because of the "sum" in
"sum_generator". But like you, I don't have a clue what's going on here
really. I'll try to ask around in Orsay...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14542#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.