>> asa091_test 10-Feb-2008 08:50:28 ASA091_TEST MATLAB version Test the ASA091 routines. TEST01: Perform a simple sample calculation using PPCHI2 to invert the Chi-Squared CDF. P = 0.017523 V = 4.000000 G Log(Gamma(V/2)) = 0.000000 VALUE = 0.399999 VALUE (correct) = 0.400000 Error flag IFAULT = 0 TEST02: Compare tabulated values of the Chi-Squared Cumulative Density Function against values computed by PPCHI2. N CDF X X2 DIFF (tabulated) (PPCHI2) 1 0.0797 0.0100000000000000 0.0099999999995679 4.3210e-13 2 0.0050 0.0100000000000000 0.0100000000000010 1.0044e-15 1 0.1125 0.0200000000000000 0.0199999999991153 8.8471e-13 2 0.0100 0.0200000000000000 0.0200000000000040 3.9933e-15 1 0.4729 0.4000000000000000 0.3999999999845615 1.5438e-11 2 0.1813 0.4000000000000000 0.4000000000015109 1.5109e-12 3 0.0598 0.4000000000000000 0.4000000000743913 7.4391e-11 4 0.0175 0.4000000000000000 0.4000000004011919 4.0119e-10 1 0.6827 1.0000000000000000 0.9999999999419344 5.8066e-11 2 0.3935 1.0000000000000000 0.9999999999992277 7.7227e-13 3 0.1987 1.0000000000000000 0.9999999999665969 3.3403e-11 4 0.0902 1.0000000000000000 1.0000000000663636 6.6364e-11 5 0.0374 1.0000000000000000 0.9999999999121670 8.7833e-11 3 0.4276 2.0000000000000000 1.9999999999167293 8.3271e-11 3 0.6084 3.0000000000000000 3.0000000000530878 5.3088e-11 3 0.7385 4.0000000000000000 4.0000000000515783 5.1578e-11 3 0.8282 5.0000000000000000 5.0000000000509255 5.0925e-11 3 0.8884 6.0000000000000000 6.0000000000505054 5.0505e-11 10 0.0002 1.0000000000000000 1.0000204618888946 2.0462e-05 10 0.0037 2.0000000000000000 2.0000000085416545 8.5417e-09 10 0.0186 3.0000000000000000 2.9999999967292847 3.2707e-09 ASA091_TEST Normal end of execution. 10-Feb-2008 08:50:28 >>