#11416 closed defect (duplicate)
binomial does not work on floats
Reported by: | Henryk.Trappmann | Owned by: | AlexGhitza |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | basic arithmetic | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | Douglas McNeil, Karl-Dieter Crisman | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
sage: binomial(1.3r,2)
AttributeError? Traceback (most recent call last)
/opt/sage-4.7-linux-32bit-ubuntu_10.04_lts-i686-Linux/<ipython console> in <module>()
/opt/sage-4.7-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/sage/rings/arith.pyc in binomial(x, m, kwds)
2978 if isinstance(x, (float, sage.rings.real_mpfr.RealNumber?, 2979 sage.rings.real_mpfr.RealLiteral?)):
-> 2980 P = x.parent()
2981 if m < 0: 2982 return P(0)
AttributeError?: 'float' object has no attribute 'parent'
Change History (5)
comment:1 follow-up: ↓ 2 Changed 10 years ago by
comment:2 in reply to: ↑ 1 Changed 10 years ago by
- Reviewers set to Douglas S. McNeil, Karl-Dieter Crisman
- Status changed from new to needs_review
comment:3 Changed 10 years ago by
- Status changed from needs_review to positive_review
comment:4 Changed 10 years ago by
- Milestone changed from sage-4.7.1 to sage-duplicate/invalid/wontfix
- Resolution set to duplicate
- Status changed from positive_review to closed
comment:5 Changed 10 years ago by
- Reviewers changed from Douglas S. McNeil, Karl-Dieter Crisman to Douglas McNeil, Karl-Dieter Crisman
Note: See
TracTickets for help on using
tickets.
I think this was fixed by #9633 in sage-4.7.1.alpha0.