Dividing factorials on 15C CE
|
01-10-2024, 03:12 PM
Post: #15
|
|||
|
|||
RE: Dividing factorials on 15C CE
(01-09-2024 01:23 AM)Thomas Klemm Wrote: This avoids rounding errors:Th really cool think about computing combinations this way is that the divisions always result in an integer. Computing combinations was discussed in great detail in PPC journal. I don't have a reference handy, but I recall one final trick to prevent overflow in the multiplication: you start with 1E-99 (or whatever the smallest exponent is) as your result, run the algorithm, and then multiply the result by 1E99. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)