[GiNaC-list] binomial coefficients
Vladimir V. Kisil
V.Kisil at leeds.ac.uk
Tue Feb 7 23:38:03 CET 2023
>>>>> On Tue, 7 Feb 2023 22:18:02 +0100, Marko Riedel <riedelmo at mathematik.uni-stuttgart.de> said:
MR> Greetings. I would like to point out that
MR> binomial(-5, -7)
MR> will produce a segmentation fault. Compare to Maple which says
MR> that when binomial(n,k) has k<0 but n-k>=0 we should use
MR> binomial(n, n-k) which gives 15 in this case.
If we want this feature to be added to GiNaC then the attached patch
may do it.
--
Vladimir V. Kisil http://www1.maths.leeds.ac.uk/~kisilv/
Book: Geometry of Mobius Maps https://doi.org/10.1142/p835
Soft: Geometry of cycles http://moebinv.sourceforge.net/
Jupyter notebooks: https://github.com/vvkisil?tab=repositories
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Extend-applicability-of-binomial-evaluation.patch
Type: text/x-diff
Size: 1081 bytes
Desc: Binomials patch.patch
URL: <http://www.ginac.de/pipermail/ginac-list/attachments/20230207/f9266d82/attachment.bin>
More information about the GiNaC-list
mailing list