#9633: binomial does not accept float
--------------------------------+-------------------------------------------
   Reporter:  Henryk.Trappmann  |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  major             |   Milestone:            
  Component:  basic arithmetic  |    Keywords:            
     Author:                    |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------
 {{{
 sage: binomial(0.5r,5)
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /home/bo198214/projects/<ipython console> in <module>()

 /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
 python2.6/site-packages/sage/rings/arith.pyc in binomial(x, m)
    2887     if isinstance(x, (float, sage.rings.real_mpfr.RealNumber,
    2888                       sage.rings.real_mpfr.RealLiteral)):
 -> 2889         P = x.parent()
    2890         if m < 0:
    2891             return P(0)

 AttributeError: 'float' object has no attribute 'parent'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9633>
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.

Reply via email to