14 June 2018 01:57:02 PM ASA183_TEST C version Test the ASA183 library. TEST01 R4_RANDOM computes pseudorandom values. Three seeds, S1, S2, and S3, are used. R S1 S2 S3 12345 34567 56789 0.294227 22434 5352 11416 0.112944 22320 11334 48 0.685823 2826 9800 8160 0.330013 29211 18715 22665 0.302333 696 6438 2029 0.844439 28209 16284 11377 0.561166 10968 12604 23741 0.592238 29119 16091 3011 0.704393 15233 9715 26702 0.891146 1709 4095 21213 TEST02 Examine the average and variance of a sequence generated by R4_RANDOM. Now compute 100000 elements. Average value = 0.500209 Expecting 0.500000 Variance = 0.083255 Expecting 0.083333 TEST03 Show how the seeds used by R4_RANDOM, which change on each step, can be reset to restore any part of the sequence. Begin sequence with following seeds S1 = 12345 S2 = 34567 S3 = 56789 I R S1 S2 S3 1 0.294227 22434 5352 11416 2 0.112944 22320 11334 48 3 0.685823 2826 9800 8160 4 0.330013 29211 18715 22665 5 0.302333 696 6438 2029 6 0.844439 28209 16284 11377 7 0.561166 10968 12604 23741 8 0.592238 29119 16091 3011 9 0.704393 15233 9715 26702 10 0.891146 1709 4095 21213 Restart the sequence, using the seeds produced after step 5: S1 = 696 S2 = 6438 S3 = 2029 I R S1 S2 S3 1 0.844439 28209 16284 11377 2 0.561166 10968 12604 23741 3 0.592238 29119 16091 3011 4 0.704393 15233 9715 26702 5 0.891146 1709 4095 21213 6 0.821462 19818 7279 28096 7 0.783654 29019 9401 15609 8 0.800228 28402 10701 15429 9 0.683281 13702 22152 15152 10 0.072337 12329 21769 28708 TEST04 R4_UNI computes pseudorandom values. Two seeds, S1 and S2, are used. R S1 S2 12345 34567 0.575025 493972830 1406600364 0.945577 390105768 506978341 0.253573 1781664868 1237121178 0.883384 1526187241 1776619217 0.794246 866180343 1308034228 0.976838 1103021545 1152761561 0.246036 1221914854 693555855 0.928839 1942689135 2095505401 0.986301 153034416 182453399 0.232776 1043483711 543601765 TEST05 Examine the average and variance of a sequence generated by R4_UNI. Now compute 100000 elements. Average value = 0.500318 Expecting 0.500000 Variance = 0.083517 Expecting 0.083333 TEST06 Show how the seeds used by R4_UNI, which change on each step, can be reset to restore any part of the sequence. Begin sequence with following seeds S1 = 12345 S2 = 34567 I R S1 S2 1 0.575025 493972830 1406600364 2 0.945577 390105768 506978341 3 0.253573 1781664868 1237121178 4 0.883384 1526187241 1776619217 5 0.794246 866180343 1308034228 6 0.976838 1103021545 1152761561 7 0.246036 1221914854 693555855 8 0.928839 1942689135 2095505401 9 0.986301 153034416 182453399 10 0.232776 1043483711 543601765 Restart the sequence, using the seeds produced after step 5: S1 = 866180343 S2 = 1308034228 I R S1 S2 1 0.976838 1103021545 1152761561 2 0.246036 1221914854 693555855 3 0.928839 1942689135 2095505401 4 0.986301 153034416 182453399 5 0.232776 1043483711 543601765 6 0.660200 434296545 1164011680 7 0.737146 504959834 1069434216 8 0.523365 1937436972 813520136 9 0.065935 446373308 304778527 10 0.106898 560752841 331191459 TEST07 R8_RANDOM computes pseudorandom values. Three seeds, S1, S2, and S3, are used. R S1 S2 S3 12345 34567 56789 0.294227 22434 5352 11416 0.112944 22320 11334 48 0.685823 2826 9800 8160 0.330013 29211 18715 22665 0.302333 696 6438 2029 0.844439 28209 16284 11377 0.561165 10968 12604 23741 0.592238 29119 16091 3011 0.704393 15233 9715 26702 0.891146 1709 4095 21213 TEST08 Examine the average and variance of a sequence generated by R8_RANDOM. Now compute 100000 elements. Average value = 0.500210 Expecting 0.500000 Variance = 0.083257 Expecting 0.083333 TEST09 Show how the seeds used by R8_RANDOM, which change on each step, can be reset to restore any part of the sequence. Begin sequence with following seeds S1 = 12345 S2 = 34567 S3 = 56789 I R S1 S2 S3 1 0.294227 22434 5352 11416 2 0.112944 22320 11334 48 3 0.685823 2826 9800 8160 4 0.330013 29211 18715 22665 5 0.302333 696 6438 2029 6 0.844439 28209 16284 11377 7 0.561165 10968 12604 23741 8 0.592238 29119 16091 3011 9 0.704393 15233 9715 26702 10 0.891146 1709 4095 21213 Restart the sequence, using the seeds produced after step 5: S1 = 696 S2 = 6438 S3 = 2029 I R S1 S2 S3 1 0.844439 28209 16284 11377 2 0.561165 10968 12604 23741 3 0.592238 29119 16091 3011 4 0.704393 15233 9715 26702 5 0.891146 1709 4095 21213 6 0.821462 19818 7279 28096 7 0.783654 29019 9401 15609 8 0.800228 28402 10701 15429 9 0.683281 13702 22152 15152 10 0.072337 12329 21769 28708 TEST10 R8_UNI computes pseudorandom values. Two seeds, S1 and S2, are used. R S1 S2 12345 34567 0.575025 493972830 1406600364 0.945577 390105768 506978341 0.253573 1781664868 1237121178 0.883384 1526187241 1776619217 0.794246 866180343 1308034228 0.976838 1103021545 1152761561 0.246036 1221914854 693555855 0.928839 1942689135 2095505401 0.986301 153034416 182453399 0.232776 1043483711 543601765 TEST11 Examine the average and variance of a sequence generated by R8_UNI. Now compute 100000 elements. Average value = 0.500317 Expecting 0.500000 Variance = 0.083519 Expecting 0.083333 TEST12 Show how the seeds used by R8_UNI, which change on each step, can be reset to restore any part of the sequence. Begin sequence with following seeds S1 = 12345 S2 = 34567 I R S1 S2 1 0.575025 493972830 1406600364 2 0.945577 390105768 506978341 3 0.253573 1781664868 1237121178 4 0.883384 1526187241 1776619217 5 0.794246 866180343 1308034228 6 0.976838 1103021545 1152761561 7 0.246036 1221914854 693555855 8 0.928839 1942689135 2095505401 9 0.986301 153034416 182453399 10 0.232776 1043483711 543601765 Restart the sequence, using the seeds produced after step 5: S1 = 866180343 S2 = 1308034228 I R S1 S2 1 0.976838 1103021545 1152761561 2 0.246036 1221914854 693555855 3 0.928839 1942689135 2095505401 4 0.986301 153034416 182453399 5 0.232776 1043483711 543601765 6 0.660200 434296545 1164011680 7 0.737146 504959834 1069434216 8 0.523365 1937436972 813520136 9 0.065935 446373308 304778527 10 0.106898 560752841 331191459 ASA183_TEST Normal end of execution. 14 June 2018 01:57:02 PM