Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium NeedsReview smichr

New issue 2208 by [email protected]: gamma used int instead of floor
http://code.google.com/p/sympy/issues/detail?id=2208

Here is a case that was not detected when redefining int as int and not floor: the gamma function's expand(func=True). Here is the comment from a commit on fuzzy_and [ https://github.com/sympy/sympy/pull/122 ]

    When the argument of gamma had an Add with a negative Rational
    coefficient, int was being used on that coefficient rather than
    floor. Now the expanded and unexpanded give the same value:

    >>> gamma(-3*S.Half+x).subs(x,3).n() , \
    ... gamma(-3*S.Half+x).expand(func=True).subs(x,3).n()
    (0.886226925452758, 0.886226925452758)

    A symbolic test was added.

It was re-written, too, to use the more efficient as_coeff_add().

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to