Tue May 20 22:43:04 2025 toms515_test(): python version: 3.10.12 numpy version: 1.26.4 Test toms515(). comb_test01(): Generate all K-subsets of an N set. K = 3 N = 5 LMAX = 10 1: 1 2 3 2: 1 2 4 3: 1 2 5 4: 1 3 4 5: 1 3 5 6: 1 4 5 7: 2 3 4 8: 2 3 5 9: 2 4 5 10: 3 4 5 comb_test02(): Generate all K-subsets of an N set. K = 3 N = 5 LMAX = 10 10: 3 4 5 3: 1 2 5 3: 1 2 5 3: 1 2 5 1: 1 2 3 9: 2 4 5 7: 2 3 4 3: 1 2 5 8: 2 3 5 4: 1 3 4 comb_test03(): Generate 10 random K-subsets of an N set. K = 3 N = 25 LMAX = 2300 229: 1 15 23 298: 2 3 25 1533: 8 12 16 3: 1 2 5 1503: 8 10 13 1386: 7 11 18 532: 3 4 7 1629: 9 10 19 2186: 16 17 23 1974: 12 16 21 comb_test04(): Generate 10 random K-subsets of an N set. K = 3 N = 100 LMAX = 161700 5185: 2 6 52 6851: 2 26 48 71696: 18 46 87 159938: 78 79 88 25117: 6 29 46 159671: 76 97 98 59731: 15 20 61 8783: 2 59 99 65736: 16 63 86 32591: 8 16 57 comb_test05(): Generate 10 random K-subsets of an N set. K = 10 N = 100 LMAX = 17310309456440 Note that this function is already failing because LMAX is negative. The combinatorial coefficient C(100,10) is too large to store in an integer. Although the program continues to give results, they cannot be relied on! comb_test05(): Warning! The binomial coefficient cannot be computed in integer arithmetic for this choice of parameters. i4_choose_test(): i4_choose() evaluates C(N,K). N K CNK 0 0 1 1 0 1 1 1 1 2 0 1 2 1 2 2 2 1 3 0 1 3 1 3 3 2 3 3 3 1 4 0 1 4 1 4 4 2 6 4 3 4 4 4 1 i4_choose_check_test(): i4_choose_check() checks whether C(N,K) can be computed with integer arithmetic or not. N K CHECK? i4_choose 10 3 1 120 1000 999 1 1000 100 3 1 161700 100 10 0 Not computable toms515_test(): Normal end of execution. Tue May 20 22:43:04 2025