Tue Oct 19 11:53:12 2021 hammersley_tests() Python version: 3.6.9 Test hammersley() hammersley_test Python version: 3.6.9 hammersley() returns the I-th element of an M-dimensional Hammersley sequence. I HAMMERSLEY(I) Use M = 1 Use N = 16 0 0.00000000 1 0.06250000 2 0.12500000 3 0.18750000 4 0.25000000 5 0.31250000 6 0.37500000 7 0.43750000 8 0.50000000 9 0.56250000 10 0.62500000 Use M = 2 Use N = 16 0 0.00000000 0.00000000 1 0.06250000 0.50000000 2 0.12500000 0.25000000 3 0.18750000 0.75000000 4 0.25000000 0.12500000 5 0.31250000 0.62500000 6 0.37500000 0.37500000 7 0.43750000 0.87500000 8 0.50000000 0.06250000 9 0.56250000 0.56250000 10 0.62500000 0.31250000 Use M = 3 Use N = 16 0 0.00000000 0.00000000 0.00000000 1 0.06250000 0.50000000 0.33333333 2 0.12500000 0.25000000 0.66666667 3 0.18750000 0.75000000 0.11111111 4 0.25000000 0.12500000 0.44444444 5 0.31250000 0.62500000 0.77777778 6 0.37500000 0.37500000 0.22222222 7 0.43750000 0.87500000 0.55555556 8 0.50000000 0.06250000 0.88888889 9 0.56250000 0.56250000 0.03703704 10 0.62500000 0.31250000 0.37037037 hammersley_test Normal end of execution. hammersley_inverse_test Python version: 3.6.9 hammersley_inverse inverts an element of a Hammersley sequence. I R=HAMMERSLEY(I,3) hammersley_inverse(R,3) 0 0.00000000 0.00000000 0.00000000 0 1 0.06250000 0.50000000 0.33333333 1 2 0.12500000 0.25000000 0.66666667 2 3 0.18750000 0.75000000 0.11111111 3 4 0.25000000 0.12500000 0.44444444 4 5 0.31250000 0.62500000 0.77777778 5 6 0.37500000 0.37500000 0.22222222 6 7 0.43750000 0.87500000 0.55555556 7 8 0.50000000 0.06250000 0.88888889 8 9 0.56250000 0.56250000 0.03703704 9 10 0.62500000 0.31250000 0.37037037 10 hammersley_inverse_test Normal end of execution. hammersley_sequence_test Python version: 3.6.9 hammersley_sequence returns the elements I1 through I2 of an M-dimensional Hammersley sequence. hammersley_sequence(0,10,1,16): R: Col: 0 1 2 3 4 Row 0 : 0 0.0625 0.125 0.1875 0.25 Col: 5 6 7 8 9 Row 0 : 0.3125 0.375 0.4375 0.5 0.5625 Col: 10 Row 0 : 0.625 hammersley_sequence(0,10,2,16): R: Col: 0 1 2 3 4 Row 0 : 0 0.0625 0.125 0.1875 0.25 1 : 0 0.5 0.25 0.75 0.125 Col: 5 6 7 8 9 Row 0 : 0.3125 0.375 0.4375 0.5 0.5625 1 : 0.625 0.375 0.875 0.0625 0.5625 Col: 10 Row 0 : 0.625 1 : 0.3125 hammersley_sequence(0,10,3,16): R: Col: 0 1 2 3 4 Row 0 : 0 0.0625 0.125 0.1875 0.25 1 : 0 0.5 0.25 0.75 0.125 2 : 0 0.333333 0.666667 0.111111 0.444444 Col: 5 6 7 8 9 Row 0 : 0.3125 0.375 0.4375 0.5 0.5625 1 : 0.625 0.375 0.875 0.0625 0.5625 2 : 0.777778 0.222222 0.555556 0.888889 0.037037 Col: 10 Row 0 : 0.625 1 : 0.3125 2 : 0.37037 hammersley_sequence(10,0,3,16): R: Col: 0 1 2 3 4 Row 0 : 0.625 0.5625 0.5 0.4375 0.375 1 : 0.3125 0.5625 0.0625 0.875 0.375 2 : 0.37037 0.037037 0.888889 0.555556 0.222222 Col: 5 6 7 8 9 Row 0 : 0.3125 0.25 0.1875 0.125 0.0625 1 : 0.625 0.125 0.75 0.25 0.5 2 : 0.777778 0.444444 0.111111 0.666667 0.333333 Col: 10 Row 0 : 0 1 : 0 2 : 0 hammersley_sequence_test Normal end of execution. hammersley_tests: Normal end of execution. Tue Oct 19 11:53:12 2021