#19296: Generating function in FindStat interface
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.9
Component: packages: | Resolution:
optional | Merged in:
Keywords: FindStat, OEIS | Reviewers:
Authors: Christian Stump | Work issues: document
Report Upstream: N/A | Commit:
Branch: | 5558be983f10469e5be31e45652364437a0edb03
u/stumpc5/generating_function_in_findstat_interface| Stopgaps:
Dependencies: #19307 |
-------------------------------------+-------------------------------------
Comment (by mantepse):
The html now looks almost fine, with the exception of the link to
{{{OEIS.find_by_description()}}}, which does not work.
There is another, less minor thing: {{{generating_functions}}} currently
only works for queries that yield statistics, i.e., of the form
{{{findstat(number)}}}:
{{{
sage: s=findstat("Permutations", number_of_alignments); s
0: (St000222: The number of alignments of a permutation, [], 200)
sage: s.generating_functions()
...
AttributeError: 'FindStatStatistic' object has no attribute
'_generating_function'
sage: s[0][0].generating_functions()
{2: 2,
3: 3*q + 3,
4: 12*q^2 + 8*q + 4,
5: 20*q^4 + 45*q^3 + 35*q^2 + 15*q + 5,
6: 100*q^6 + 180*q^5 + 198*q^4 + 140*q^3 + 72*q^2 + 24*q + 6}
}}}
While this is as expected, I think it shouldn't be that way. In
particular, if possible it would be nice to be able to use
{{{oeis_search}}} even for new statistics.
Of course, this requires that the generating function is computed by the
sage interface, and not retrieved from findstat.org.
I'll try to propose a patch shortly.
--
Ticket URL: <http://trac.sagemath.org/ticket/19296#comment:29>
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/d/optout.