14 August 2022 01:05:27 PM asa245_test(): C++ version Test asa245(). test01(): alngam() computes the logarithm of the Gamma function. We compare the result to tabulated values. X FX FX2 (Tabulated) (ALNGAM) DIFF 0.2 1.524063822430784 1.524063822474622 4.384e-11 0.4 0.7966778177017837 0.7966778176797148 2.207e-11 0.6 0.3982338580692348 0.3982338579206516 1.486e-10 0.8 0.1520596783998375 0.1520596783251525 7.469e-11 1 0 0 0 1.1 -0.04987244125983972 -0.04987244125532977 4.51e-12 1.2 -0.08537409000331583 -0.08537408995947865 4.384e-11 1.3 -0.1081748095078604 -0.1081748095390525 3.119e-11 1.4 -0.1196129141723712 -0.1196129141944402 2.207e-11 1.5 -0.1207822376352452 -0.1207822376563367 2.109e-11 1.6 -0.1125917656967557 -0.1125917657030719 6.316e-12 1.7 -0.09580769740706586 -0.09580769741919355 1.213e-11 1.8 -0.07108387291437215 -0.07108387290649908 7.873e-12 1.9 -0.03898427592308333 -0.03898427591676824 6.315e-12 2 0 0 0 3 0.6931471805599453 0.6931471806718161 1.119e-10 4 1.791759469228055 1.791759467549525 1.679e-09 10 12.80182748008147 12.80182748826567 8.184e-09 20 39.33988418719949 39.33988418719949 7.105e-15 30 71.25703896716801 71.257038967168 1.421e-14 test02(): lngamma() computes the logarithm of the Gamma function. We compare the result to tabulated values. X FX FX2 (Tabulated) (LNGAMMA) DIFF 0.2 1.524063822430784 1.524063822430784 2.22e-16 0.4 0.7966778177017837 0.7966778177017816 2.109e-15 0.6 0.3982338580692348 0.3982338580692358 1.055e-15 0.8 0.1520596783998375 0.152059678399838 5.274e-16 1 0 6.661338147750939e-16 6.661e-16 1.1 -0.04987244125983972 -0.04987244125983881 9.159e-16 1.2 -0.08537409000331583 -0.08537409000331597 1.388e-16 1.3 -0.1081748095078604 -0.1081748095078616 1.221e-15 1.4 -0.1196129141723712 -0.1196129141723725 1.318e-15 1.5 -0.1207822376352452 -0.1207822376352454 2.22e-16 1.6 -0.1125917656967557 -0.1125917656967559 1.804e-16 1.7 -0.09580769740706586 -0.0958076974070643 1.568e-15 1.8 -0.07108387291437215 -0.07108387291437346 1.305e-15 1.9 -0.03898427592308333 -0.03898427592308362 2.914e-16 2 0 -1.332267629550188e-15 1.332e-15 3 0.6931471805599453 0.6931471805599445 7.772e-16 4 1.791759469228055 1.791759469228055 4.441e-16 10 12.80182748008147 12.80182748008147 1.776e-15 20 39.33988418719949 39.33988418719949 7.105e-15 30 71.25703896716801 71.257038967168 1.421e-14 test03() lgamma() computes the logarithm of the Gamma function. lgamma() is available with the G++ compiler. Compare the result to tabulated values. X FX FX2 (Tabulated) (LNGAMMA) DIFF 0.2 1.524063822430784 1.524063822430784 2.22e-16 0.4 0.7966778177017837 0.7966778177017837 0 0.6 0.3982338580692348 0.3982338580692349 1.665e-16 0.8 0.1520596783998375 0.1520596783998376 5.551e-17 1 0 0 0 1.1 -0.04987244125983972 -0.04987244125983976 4.163e-17 1.2 -0.08537409000331583 -0.08537409000331583 0 1.3 -0.1081748095078604 -0.1081748095078605 6.939e-17 1.4 -0.1196129141723712 -0.1196129141723713 9.714e-17 1.5 -0.1207822376352452 -0.1207822376352452 1.388e-17 1.6 -0.1125917656967557 -0.1125917656967558 6.939e-17 1.7 -0.09580769740706586 -0.09580769740706588 1.388e-17 1.8 -0.07108387291437215 -0.07108387291437215 0 1.9 -0.03898427592308333 -0.03898427592308336 2.776e-17 2 0 0 0 3 0.6931471805599453 0.6931471805599453 0 4 1.791759469228055 1.791759469228055 0 10 12.80182748008147 12.80182748008147 1.776e-15 20 39.33988418719949 39.33988418719949 0 30 71.25703896716801 71.25703896716801 0 asa245_test(): Normal end of execution. 14 August 2022 01:05:27 PM