Am 2016-04-04 um 18:02 schrieb Peter Luschny: > > Sage seems to use the definition from Concrete Mathematics by Graham, >> Knuth and Patashnik: >> That gives e.g. >> sage: binomial(-4, 5) >> -56 > > Right. GKP call it "upper negation". If you look at my demo-function > you will see that this condition is preserved in the suggested extension > (case 3). The proposal returns a superset of the current values. > >> Concrete Mathematics is seen as something >> of a bible in large parts of computer science, and it's unfortunate to >> disagree with a basic definition in there. > > It /extends/ this definition. As long as k>=0 nothing will change > compared to the GKP definition. Upper negation will be untouched.
According to the patch proposed in the description of #17123, the behaviour sage: binomial(-1, -1) 0 would change to sage: binomial(-1, -1) 1 A change like this would silently induce errors in previously valid user code (I am not speaking about the library which can be doctested, but user code out there). Therefore, I am strictly opposed to a change like that. Introducing a new name or a new parameter (keeping the _current_ behaviour the default) is fine. Clemens -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.