#18338: bell_polynomial(n,k) should always return a polynomial
-------------------------------------+-------------------------------------
Reporter: tmonteil | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.7
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Thierry Monteil | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/tmonteil/bell_polynomial_n_k__should_always_return_a_polynomial|
c5281c075bf4e196aea84cafa2c54d119ee6cd7e
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vdelecroix):
* status: needs_review => needs_work
Comment:
This is ugly
{{{#!diff
- return result
+ return R(result)
}}}
Could you instead make it in such way that the coefficients belong to
`ZZ`. With the current version you are intensively using coercion
`ZZ[x0,x1,...] -> QQ[x0,x1,...]` for no good reasons. i.e. just use `//`
instead of `/` here
{{{
coefficient = factorial(n) / (factorial_product * power_factorial_product)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18338#comment:8>
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.