18 September 2013 02:45:18 PM G++_INTRINSICS: Demonstrate the use of some G++ intrinsic functions. TEST_ERF: Test ERF, which evaluates the error function ERF(X). X ERF(X) ERF(X) DIFF (tabulated) (computed) 0 0 0 0 0.1 0.112463 0.112463 0 0.2 0.222703 0.222703 2.77556e-17 0.3 0.328627 0.328627 0 0.4 0.428392 0.428392 5.55112e-17 0.5 0.5205 0.5205 0 0.6 0.603856 0.603856 0 0.7 0.677801 0.677801 1.11022e-16 0.8 0.742101 0.742101 0 0.9 0.796908 0.796908 1.11022e-16 1 0.842701 0.842701 0 1.1 0.880205 0.880205 0 1.2 0.910314 0.910314 1.11022e-16 1.3 0.934008 0.934008 0 1.4 0.952285 0.952285 1.11022e-16 1.5 0.966105 0.966105 1.11022e-16 1.6 0.976348 0.976348 0 1.7 0.98379 0.98379 1.11022e-16 1.8 0.989091 0.989091 1.11022e-16 1.9 0.99279 0.99279 0 2 0.995322 0.995322 0 TEST_ERFC: Test ERFC, which evaluates the complementary error function. X ERFC(X) ERFC(X) DIFF (tabulated) (computed) 0 1 1 0 0.2 0.777297 0.777297 0 0.4 0.571608 0.571608 0 0.6 0.396144 0.396144 0 0.8 0.257899 0.257899 0 1 0.157299 0.157299 2.77556e-17 1.2 0.089686 0.089686 2.77556e-17 1.4 0.0477149 0.0477149 2.08167e-17 1.6 0.0236516 0.0236516 3.46945e-18 1.8 0.0109095 0.0109095 5.20417e-18 2 0.00467773 0.00467773 8.67362e-19 2.2 0.00186285 0.00186285 1.51788e-18 2.4 0.000688514 0.000688514 3.25261e-19 2.6 0.000236034 0.000236034 1.0842e-19 2.8 7.50132e-05 7.50132e-05 8.13152e-20 3 2.20905e-05 2.20905e-05 3.38813e-21 3.2 6.02576e-06 6.02576e-06 7.6233e-21 3.4 1.52199e-06 1.52199e-06 1.27055e-21 3.6 3.55863e-07 3.55863e-07 2.11758e-22 3.8 7.70039e-08 7.70039e-08 1.19114e-22 4 1.54173e-08 1.54173e-08 0 TEST_ISNAN ISNAN(X) is TRUE if X is "Not a Number". Function -1 0 +1 +2 ACOS(X) 0 0 0 1 ASIN(X) 0 0 0 1 ATAN(X) 0 0 0 0 LOG(X) 1 0 0 0 SQRT(X) 1 0 0 0 1 / X 0 0 0 0 TEST_LGAMMA: Test LGAMMA, which evaluates the log(Gamma) function. X Log(GAMMA(X)) LGAMMA(X) DIFF (tabulated) (computed) 0.01 4.59948 4.59948 8.88178e-16 0.1 2.25271 2.25271 4.44089e-16 0.2 1.52406 1.52406 2.22045e-16 0.4 0.796678 0.796678 1.11022e-16 0.5 0.572365 0.572365 0 0.6 0.398234 0.398234 5.55112e-17 0.8 0.15206 0.15206 2.498e-16 1 0 0 0 1.1 -0.0498724 -0.0498724 2.77556e-17 1.2 -0.0853741 -0.0853741 2.77556e-17 1.3 -0.108175 -0.108175 0 1.4 -0.119613 -0.119613 4.16334e-17 1.5 -0.120782 -0.120782 4.16334e-17 1.6 -0.112592 -0.112592 0 1.7 -0.0958077 -0.0958077 0 1.8 -0.0710839 -0.0710839 1.38778e-17 1.9 -0.0389843 -0.0389843 1.38778e-17 2 0 0 0 3 0.693147 0.693147 0 4 1.79176 1.79176 0 10 12.8018 12.8018 1.77636e-15 20 39.3399 39.3399 0 30 71.257 71.257 0 TEST_TGAMMA: Test TGAMMA, which evaluates the Gamma function. X GAMMA(X) TGAMMA(X) DIFF (tabulated) (computed) -0.5 -3.54491 -3.54491 4.44089e-16 -0.01 -100.587 -100.587 8.52651e-14 0.01 99.4326 99.4326 7.10543e-14 0.1 9.51351 9.51351 5.32907e-15 0.2 4.59084 4.59084 8.88178e-16 0.4 2.21816 2.21816 0 0.5 1.77245 1.77245 0 0.6 1.48919 1.48919 0 0.8 1.16423 1.16423 2.22045e-16 1 1 1 0 1.1 0.951351 0.951351 0 1.2 0.918169 0.918169 0 1.3 0.897471 0.897471 0 1.4 0.887264 0.887264 0 1.5 0.886227 0.886227 0 1.6 0.893515 0.893515 0 1.7 0.908639 0.908639 0 1.8 0.931384 0.931384 0 1.9 0.961766 0.961766 0 2 1 1 0 3 2 2 0 4 6 6 0 10 362880 362880 4.65661e-10 20 1.21645e+17 1.21645e+17 80 30 8.84176e+30 8.84176e+30 4.95396e+16 G++_INTRINSICS: Normal end of execution. 18 September 2013 02:45:18 PM