Status: Accepted
Owner: smi...@gmail.com
Labels: Type-Defect Priority-Medium NeedsReview smichr

New issue 2208 by smi...@gmail.com: 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-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to