23 December 2011 08:29:11 AM NIEDERREITER2_PRB C++ version Test the NIEDERREITER2 library. TEST01 NIEDERREITER2 computes the next element of a Niederreiter quasirandom sequence using base 2. In this test, we call NIEDERREITER2 repeatedly. Using dimension DIM_NUM = 2 Seed Seed Niederreiter2 In Out 0 1 -0 -0 1 2 -0.5 -0.5 2 3 -0.75 -0.25 3 4 -0.25 -0.75 4 5 -0.375 -0.375 5 6 -0.875 -0.875 6 7 -0.625 -0.125 7 8 -0.125 -0.625 8 9 -0.1875 -0.3125 9 10 -0.6875 -0.8125 10 11 -0.9375 -0.0625 11 12 -0.4375 -0.5625 ...................... 95 96 -0.0546875 -0.929688 96 97 -0.0390625 -0.132812 97 98 -0.539062 -0.632812 98 99 -0.789062 -0.382812 99 100 -0.289062 -0.882812 100 101 -0.414062 -0.257812 101 102 -0.914062 -0.757812 102 103 -0.664062 -0.0078125 103 104 -0.164062 -0.507812 104 105 -0.226562 -0.445312 105 106 -0.726562 -0.945312 106 107 -0.976562 -0.195312 107 108 -0.476562 -0.695312 108 109 -0.351562 -0.0703125 109 110 -0.851562 -0.570312 110 111 -0.601562 -0.320312 Using dimension DIM_NUM = 3 Seed Seed Niederreiter2 In Out 0 1 -0 -0 -0 1 2 -0.5 -0.5 -0.75 2 3 -0.75 -0.25 -0.3125 3 4 -0.25 -0.75 -0.5625 4 5 -0.375 -0.375 -0.875 5 6 -0.875 -0.875 -0.125 6 7 -0.625 -0.125 -0.6875 7 8 -0.125 -0.625 -0.4375 8 9 -0.1875 -0.3125 -0.515625 9 10 -0.6875 -0.8125 -0.265625 10 11 -0.9375 -0.0625 -0.828125 11 12 -0.4375 -0.5625 -0.078125 ...................... 95 96 -0.0546875 -0.929688 -0.101562 96 97 -0.0390625 -0.132812 -0.464844 97 98 -0.539062 -0.632812 -0.714844 98 99 -0.789062 -0.382812 -0.152344 99 100 -0.289062 -0.882812 -0.902344 100 101 -0.414062 -0.257812 -0.589844 101 102 -0.914062 -0.757812 -0.339844 102 103 -0.664062 -0.0078125 -0.777344 103 104 -0.164062 -0.507812 -0.0273438 104 105 -0.226562 -0.445312 -0.949219 105 106 -0.726562 -0.945312 -0.199219 106 107 -0.976562 -0.195312 -0.636719 107 108 -0.476562 -0.695312 -0.386719 108 109 -0.351562 -0.0703125 -0.0742188 109 110 -0.851562 -0.570312 -0.824219 110 111 -0.601562 -0.320312 -0.261719 Using dimension DIM_NUM = 4 Seed Seed Niederreiter2 In Out 0 1 -0 -0 -0 -0 1 2 -0.5 -0.5 -0.75 -0.875 2 3 -0.75 -0.25 -0.3125 -0.140625 3 4 -0.25 -0.75 -0.5625 -0.765625 4 5 -0.375 -0.375 -0.875 -0.28125 5 6 -0.875 -0.875 -0.125 -0.65625 6 7 -0.625 -0.125 -0.6875 -0.421875 7 8 -0.125 -0.625 -0.4375 -0.546875 8 9 -0.1875 -0.3125 -0.515625 -0.6875 9 10 -0.6875 -0.8125 -0.265625 -0.3125 10 11 -0.9375 -0.0625 -0.828125 -0.578125 11 12 -0.4375 -0.5625 -0.078125 -0.453125 ...................... 95 96 -0.0546875 -0.929688 -0.101562 -0.509766 96 97 -0.0390625 -0.132812 -0.464844 -0.214844 97 98 -0.539062 -0.632812 -0.714844 -0.839844 98 99 -0.789062 -0.382812 -0.152344 -0.0742188 99 100 -0.289062 -0.882812 -0.902344 -0.949219 100 101 -0.414062 -0.257812 -0.589844 -0.496094 101 102 -0.914062 -0.757812 -0.339844 -0.621094 102 103 -0.664062 -0.0078125 -0.777344 -0.355469 103 104 -0.164062 -0.507812 -0.0273438 -0.730469 104 105 -0.226562 -0.445312 -0.949219 -0.527344 105 106 -0.726562 -0.945312 -0.199219 -0.402344 106 107 -0.976562 -0.195312 -0.636719 -0.636719 107 108 -0.476562 -0.695312 -0.386719 -0.261719 108 109 -0.351562 -0.0703125 -0.0742188 -0.808594 109 110 -0.851562 -0.570312 -0.824219 -0.183594 110 111 -0.601562 -0.320312 -0.261719 -0.917969 TEST02 NIEDERREITER2 computes the next element of a Niederreiter quasirandom sequence using base 2. In this test, we demonstrate how the SEED can be manipulated to skip ahead in the sequence, or to come back to any part of the sequence. Using dimension DIM_NUM = 3 Seed Seed Niederreiter2 In Out 0 1 -0 -0 -0 1 2 -0.5 -0.5 -0.75 2 3 -0.75 -0.25 -0.3125 3 4 -0.25 -0.75 -0.5625 4 5 -0.375 -0.375 -0.875 5 6 -0.875 -0.875 -0.125 6 7 -0.625 -0.125 -0.6875 7 8 -0.125 -0.625 -0.4375 8 9 -0.1875 -0.3125 -0.515625 9 10 -0.6875 -0.8125 -0.265625 10 11 -0.9375 -0.0625 -0.828125 Jump ahead by increasing SEED: Seed Seed Niederreiter2 In Out 100 101 -0.414062 -0.257812 -0.589844 101 102 -0.914062 -0.757812 -0.339844 102 103 -0.664062 -0.0078125 -0.777344 103 104 -0.164062 -0.507812 -0.0273438 104 105 -0.226562 -0.445312 -0.949219 105 106 -0.726562 -0.945312 -0.199219 Jump back by decreasing SEED: Seed Seed Niederreiter2 In Out 3 4 -0.25 -0.75 -0.5625 4 5 -0.375 -0.375 -0.875 5 6 -0.875 -0.875 -0.125 6 7 -0.625 -0.125 -0.6875 7 8 -0.125 -0.625 -0.4375 8 9 -0.1875 -0.3125 -0.515625 9 10 -0.6875 -0.8125 -0.265625 10 11 -0.9375 -0.0625 -0.828125 11 12 -0.4375 -0.5625 -0.078125 12 13 -0.3125 -0.1875 -0.390625 13 14 -0.8125 -0.6875 -0.640625 Jump ahead by increasing SEED: Seed Seed Niederreiter2 In Out 98 99 -0.789062 -0.382812 -0.152344 99 100 -0.289062 -0.882812 -0.902344 100 101 -0.414062 -0.257812 -0.589844 101 102 -0.914062 -0.757812 -0.339844 102 103 -0.664062 -0.0078125 -0.777344 NIEDERREITER2_PRB Normal end of execution. 23 December 2011 08:29:11 AM