Permutations & Combinations for large inputs
|
05-31-2015, 07:37 AM
(This post was last modified: 05-31-2015 07:37 AM by Ángel Martin.)
Post: #11
|
|||
|
|||
RE: Permutations & Combinations for large inputs
(05-27-2015 12:27 PM)Werner Wrote:(05-26-2015 05:14 PM)Dieter Wrote: Since the program calculates n!/(n–r)! first (which always is an integer) the results should be exact here.Only for n<16 I'm afraid. The NCR and NPR functions on the SandMath can be a good reference. Since they use internal 13-digit accuracy the results are pretty much right on, always integers (no, there isn't any rounding done by the function in case you wonder). But I'm positive Dieter will find a counter-example to this rule as soon as he starts using the SandMath on V41 ;-) Cheers, 'AM "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)