[GiNaC-list] binomial coefficients

Marko Riedel riedelmo at mathematik.uni-stuttgart.de
Tue Feb 7 22:18:02 CET 2023


Greetings.

I would like to point out that

     binomial(-5, -7)

will produce a segmentation fault. Compare to Maple which says that when 
binomial(n,k) has k<0 but n-k>=0 we should use binomial(n, n-k) which 
gives 15 in this case.

Best regards,

Marko




More information about the GiNaC-list mailing list