27-Jul-2021 22:52:11 CYCLE_FLOYD_TEST(): MATLAB/Octave version 9.9.0.1467703 (R2020b). Test CYCLE_FLOYD(). CYCLE_FLOYD_TEST01 Test CYCLE_FLOYD on F1(). f1(0) = 6. f1(1) = 6. f1(2) = 0. f1(3) = 1. f1(4) = 4. f1(5) = 3. f1(6) = 3. f1(7) = 4. f1(8) = 0. Starting argument X0 = 2 lam = 1 hare = 3 Reported cycle length is 3 Expected value is 3 Reported distance to first cycle element is 2 Expected value is 2 CYCLE_FLOYD_TEST02 Test CYCLE_FLOYD for F2(). f2(i) = mod ( 22 * i + 1, 72 ). Starting argument X0 = 0 lam = 1 hare = 67 Reported cycle length is 9 Expected value is 9 Reported distance to first cycle element is 3 Expected value is 3 CYCLE_FLOYD_TEST03 Test CYCLE_FLOYD for F3(). f3(i) = mod ( 123 * i + 456, 100000 ). Starting argument X0 = 789 lam = 1 hare = 97503 Reported cycle length is 50000 Expected value is 50000 Reported distance to first cycle element is 0 Expected value is 0 CYCLE_FLOYD_TEST04 Test CYCLE_FLOYD for F4(). f4(i) = mod ( 31421 * i + 6927, 65536 ). Starting argument X0 = 1 lam = 1 hare = 38348 Reported cycle length is 65536 Expected value is 65536 Reported distance to first cycle element is 0 Expected value is 0 CYCLE_FLOYD_TEST05 Test CYCLE_FLOYD for F5(). f5(i) = mod ( 16383 * i + 1, 65536 ). Starting argument X0 = 1 lam = 1 hare = 16384 Reported cycle length is 8 Expected value is 8 Reported distance to first cycle element is 0 Expected value is 0 0 1 1 16384 2 49153 3 32768 4 32769 5 49152 6 16385 7 0 8 1 9 16384 10 49153 CYCLE_FLOYD_TEST(): Normal end of execution. 27-Jul-2021 22:52:11