#17123: Extending binomial(n,k) to negative integers n, k.
---------------------------------+------------------------
       Reporter:  pluschny       |        Owner:
           Type:  enhancement    |       Status:  new
       Priority:  minor          |    Milestone:  sage-6.4
      Component:  combinatorics  |   Resolution:
       Keywords:  binomial       |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------

Comment (by SimonKing):

 Volker, it actually seems to me that the change is not totally straight
 forward.

 There is the `_eval_` method, and the `_evalf_` method. Probably both need
 to be changed.

 And there is the `_binomial_sym` method. Will this need a change as well?
 It currently returns zero if the second argument is negative:
 {{{
 sage: binomial._binomial_sym(x,-5)
 0
 }}}
 Should the return value be a different symbolic expression? After all, the
 value (according to the formula in the ticket description) is not zero if
 x evaluates to a negative number that is greater or equal to `-5`.

 So, here I don't know a good answer.

--
Ticket URL: <http://trac.sagemath.org/ticket/17123#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to