#157 Wrong results of binom() and binom_i()

release_3.10.x
closed
5
2012-09-15
2007-06-18
Adam Piątyszek
No

By: cardiac_h - 2007-06-15 10:58

I think the functions 'binom' and 'binom_i' (in scalfunc.cpp) do not calculate the binomial coefficient correctly. If n = k, I would expect the binomial coefficient to be 1, but I get n+1 instead.

Discussion

  • Logged In: YES
    user_id=1004597
    Originator: YES

    This bug is now fixed in the SVN repository. The fix will be part of the next stable and development releases (3.10.12 and 3.99.2).

    /ediap