29-Jun-2022 11:04:36 asa245_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test asa245(). asa245_test01(): alngam() computes the logarithm of the Gamma function. We compare the result to tabulated values. X FX FX2 (Tabulated) (ALNGAM) DIFF 0.2000000000000000 1.5240638224307841e+00 1.5240638224746217e+00 4.3838e-11 0.4000000000000000 7.9667781770178370e-01 7.9667781767971479e-01 2.2069e-11 0.6000000000000000 3.9823385806923478e-01 3.9823385792065158e-01 1.4858e-10 0.8000000000000000 1.5205967839983750e-01 1.5205967832515249e-01 7.4685e-11 1.0000000000000000 0.0000000000000000e+00 0.0000000000000000e+00 0.0000e+00 1.1000000000000001 -4.9872441259839723e-02 -4.9872441255329775e-02 4.5099e-12 1.2000000000000000 -8.5374090003315833e-02 -8.5374089959478650e-02 4.3837e-11 1.3000000000000000 -1.0817480950786040e-01 -1.0817480953905248e-01 3.1192e-11 1.3999999999999999 -1.1961291417237120e-01 -1.1961291419444019e-01 2.2069e-11 1.5000000000000000 -1.2078223763524520e-01 -1.2078223765633668e-01 2.1091e-11 1.6000000000000001 -1.1259176569675571e-01 -1.1259176570307186e-01 6.3162e-12 1.7000000000000000 -9.5807697407065864e-02 -9.5807697419193552e-02 1.2128e-11 1.8000000000000000 -7.1083872914372154e-02 -7.1083872906499077e-02 7.8731e-12 1.8999999999999999 -3.8984275923083331e-02 -3.8984275916768243e-02 6.3151e-12 2.0000000000000000 0.0000000000000000e+00 0.0000000000000000e+00 0.0000e+00 3.0000000000000000 6.9314718055994529e-01 6.9314718067181613e-01 1.1187e-10 4.0000000000000000 1.7917594692280550e+00 1.7917594675495250e+00 1.6785e-09 10.0000000000000000 1.2801827480081469e+01 1.2801827488265673e+01 8.1842e-09 20.0000000000000000 3.9339884187199495e+01 3.9339884187199488e+01 7.1054e-15 30.0000000000000000 7.1257038967168015e+01 7.1257038967168000e+01 1.4211e-14 asa245_test02(): lngamma() computes the logarithm of the Gamma function. We compare the result to tabulated values. X FX FX2 (Tabulated) (LNGAMMA) DIFF 0.2000000000000000 1.5240638224307841e+00 1.5240638224307839e+00 2.2204e-16 0.4000000000000000 7.9667781770178370e-01 7.9667781770178159e-01 2.1094e-15 0.6000000000000000 3.9823385806923478e-01 3.9823385806923584e-01 1.0547e-15 0.8000000000000000 1.5205967839983750e-01 1.5205967839983803e-01 5.2736e-16 1.0000000000000000 0.0000000000000000e+00 6.6613381477509392e-16 6.6613e-16 1.1000000000000001 -4.9872441259839723e-02 -4.9872441259838807e-02 9.1593e-16 1.2000000000000000 -8.5374090003315833e-02 -8.5374090003315972e-02 1.3878e-16 1.3000000000000000 -1.0817480950786040e-01 -1.0817480950786162e-01 1.2212e-15 1.3999999999999999 -1.1961291417237120e-01 -1.1961291417237252e-01 1.3184e-15 1.5000000000000000 -1.2078223763524520e-01 -1.2078223763524543e-01 2.2204e-16 1.6000000000000001 -1.1259176569675571e-01 -1.1259176569675589e-01 1.8041e-16 1.7000000000000000 -9.5807697407065864e-02 -9.5807697407064296e-02 1.5682e-15 1.8000000000000000 -7.1083872914372154e-02 -7.1083872914373458e-02 1.3045e-15 1.8999999999999999 -3.8984275923083331e-02 -3.8984275923085399e-02 2.0678e-15 2.0000000000000000 0.0000000000000000e+00 -1.3322676295501878e-15 1.3323e-15 3.0000000000000000 6.9314718055994529e-01 6.9314718055994451e-01 7.7716e-16 4.0000000000000000 1.7917594692280550e+00 1.7917594692280545e+00 4.4409e-16 10.0000000000000000 1.2801827480081469e+01 1.2801827480081471e+01 1.7764e-15 20.0000000000000000 3.9339884187199495e+01 3.9339884187199488e+01 7.1054e-15 30.0000000000000000 7.1257038967168015e+01 7.1257038967168000e+01 1.4211e-14 asa245_test03(): gammaln() computes the logarithm of the Gamma function. gammaln() is a builtin function in MATLAB. We compare the result to tabulated values. X FX FX2 (Tabulated) (GAMMALN) DIFF 0.2000000000000000 1.5240638224307841e+00 1.5240638224307843e+00 2.2204e-16 0.4000000000000000 7.9667781770178370e-01 7.9667781770178370e-01 0.0000e+00 0.6000000000000000 3.9823385806923478e-01 3.9823385806923495e-01 1.6653e-16 0.8000000000000000 1.5205967839983750e-01 1.5205967839983756e-01 5.5511e-17 1.0000000000000000 0.0000000000000000e+00 0.0000000000000000e+00 0.0000e+00 1.1000000000000001 -4.9872441259839723e-02 -4.9872441259839764e-02 4.1633e-17 1.2000000000000000 -8.5374090003315833e-02 -8.5374090003315847e-02 1.3878e-17 1.3000000000000000 -1.0817480950786040e-01 -1.0817480950786049e-01 8.3267e-17 1.3999999999999999 -1.1961291417237120e-01 -1.1961291417237130e-01 9.7145e-17 1.5000000000000000 -1.2078223763524520e-01 -1.2078223763524526e-01 5.5511e-17 1.6000000000000001 -1.1259176569675571e-01 -1.1259176569675577e-01 6.9389e-17 1.7000000000000000 -9.5807697407065864e-02 -9.5807697407065864e-02 0.0000e+00 1.8000000000000000 -7.1083872914372154e-02 -7.1083872914372154e-02 0.0000e+00 1.8999999999999999 -3.8984275923083331e-02 -3.8984275923083365e-02 3.4694e-17 2.0000000000000000 0.0000000000000000e+00 0.0000000000000000e+00 0.0000e+00 3.0000000000000000 6.9314718055994529e-01 6.9314718055994529e-01 0.0000e+00 4.0000000000000000 1.7917594692280550e+00 1.7917594692280550e+00 0.0000e+00 10.0000000000000000 1.2801827480081469e+01 1.2801827480081469e+01 0.0000e+00 20.0000000000000000 3.9339884187199495e+01 3.9339884187199495e+01 0.0000e+00 30.0000000000000000 7.1257038967168015e+01 7.1257038967168015e+01 0.0000e+00 asa245_test(): Normal end of execution. 29-Jun-2022 11:04:36