Permutations & Combinations for large inputs
|
05-27-2015, 12:03 PM
Post: #7
|
|||
|
|||
RE: Permutations & Combinations for large inputs
(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. eg. PERM(16,5) = 16!/(11!) = 524160.0001. There's 110 cases like this for n<70. All of them can be corrected with 0.1 + INT. Worst case is PERM(64,5)= Then there are a few cases with a result of 10 significa 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)