#7562: Another (new?) binomial bug
--------------------------------+-------------------------------------------
Reporter: kcrisman | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-4.3
Component: basic arithmetic | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
--------------------------------+-------------------------------------------
From sage-devel:
{{{
In [143]: [binomial(1,1),binomial(1,2),binomial(1,3),binomial(1,4)]
Out[143]: [1, 0, 0, 0]
In [144]: [binomial(1.0,1),binomial(1.0,2),binomial(1.0,3),binomial
(1.0,4)]
Out[144]: [1.00000000000000, 0.000000000000000, NaN, NaN]
}}}
The problem is this:
{{{
sage: x = RealNumber('1.0')
sage: P = x.parent()
sage: P
Real Field with 53 bits of precision
sage: gamma(x+1)/gamma(P(Integer(4)+1))/gamma(x-Integer(4)+1)
NaN
sage: gamma(x-Integer(4)+1)
NaN
}}}
So we'll have to put in yet another check...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7562>
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 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/sage-trac?hl=en.