Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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:

Status badges

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: Changed 10 years ago by dsm

I think this was fixed by #9633 in sage-4.7.1.alpha0.

comment:2 in reply to: ↑ 1 Changed 10 years ago by kcrisman

  • Reviewers set to Douglas S. McNeil, Karl-Dieter Crisman
  • Status changed from new to needs_review

Replying to dsm:

I think this was fixed by #9633 in sage-4.7.1.alpha0.

You are correct.

And considering the same person reported both tickets... :) Well, I've done that as well.

comment:3 Changed 10 years ago by kcrisman

  • Status changed from needs_review to positive_review

comment:4 Changed 10 years ago by jdemeyer

  • 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 jdemeyer

  • Reviewers changed from Douglas S. McNeil, Karl-Dieter Crisman to Douglas McNeil, Karl-Dieter Crisman
Note: See TracTickets for help on using tickets.