27 February 2022 09:49:30 AM TOMS446_TEST C++ version Test the TOMS446 library. CHEBY_TEST CHEBY computes the Chebyshev series for several functions. Sin(x) Cos(x) Sin(2x) Cos(2x) X^5 0.000000 1.530395 0.000000 0.447782 0.000000 0.880101 0.000000 1.153450 -0.000000 0.625000 0.000000 -0.229807 0.000000 -0.705668 0.000000 -0.039127 0.000000 -0.257886 0.000000 0.312500 -0.000000 0.004953 -0.000000 0.067991 0.000000 0.000500 -0.000000 0.014079 -0.000000 0.062500 0.000000 -0.000042 0.000000 -0.002405 0.000000 -0.000003 -0.000000 -0.000350 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000044 -0.000000 0.000000 0.000000 0.000010 0.000000 -0.000000 DFRNT_TEST DFRNT computes the Chebyshev series for the derivative of several functions. Chebyshev series for d/dx of: Sin(x) Cos(x) Sin(2x) Cos(2x) X^5 1.530396 -0.000000 0.895653 0.000000 3.750000 0.000000 -0.880101 0.000000 -2.306897 0.000000 -0.229807 -0.000000 -1.411246 0.000000 2.500000 0.000000 0.039127 0.000000 0.515775 -0.000000 0.004953 -0.000000 0.136073 0.000000 0.625000 0.000000 -0.000500 0.000000 -0.028157 -0.000000 -0.000042 -0.000000 -0.004720 0.000000 -0.000000 0.000000 0.000003 0.000000 0.000702 -0.000000 0.000000 0.000000 0.000179 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 ECHEB_TEST ECHEB evaluates a Chebyshev series. Sin(x) -1.000000 -0.841471 -0.841471 -0.600000 -0.564642 -0.564642 -0.200000 -0.198669 -0.198669 0.200000 0.198669 0.198669 0.600000 0.564642 0.564642 1.000000 0.841471 0.841471 Cos(x) -1.000000 0.540302 0.540302 -0.600000 0.825336 0.825336 -0.200000 0.980067 0.980067 0.200000 0.980067 0.980067 0.600000 0.825336 0.825336 1.000000 0.540302 0.540302 Sin(2x) -1.000000 -0.909297 -0.909302 -0.600000 -0.932039 -0.932037 -0.200000 -0.389418 -0.389423 0.200000 0.389418 0.389423 0.600000 0.932039 0.932037 1.000000 0.909297 0.909302 Cos(2x) -1.000000 -0.416147 -0.416147 -0.600000 0.362358 0.362357 -0.200000 0.921061 0.921061 0.200000 0.921061 0.921061 0.600000 0.362358 0.362357 1.000000 -0.416147 -0.416147 x^5 -1.000000 -1.000000 -1.000000 -0.600000 -0.077760 -0.077760 -0.200000 -0.000320 -0.000320 0.200000 0.000320 0.000320 0.600000 0.077760 0.077760 1.000000 1.000000 1.000000 EDCHEB_TEST EDCHEB evaluates the derivative of a Chebyshev series. Sin(x) -1.000000 0.540302 0.540303 -0.600000 0.825336 0.825336 -0.200000 0.980067 0.980067 0.200000 0.980067 0.980067 0.600000 0.825336 0.825336 1.000000 0.540302 0.540303 Cos(x) -1.000000 0.841471 0.841471 -0.600000 0.564642 0.564642 -0.200000 0.198669 0.198669 0.200000 -0.198669 -0.198669 0.600000 -0.564642 -0.564642 1.000000 -0.841471 -0.841471 Sin(2x) -1.000000 -0.832294 -0.831887 -0.600000 0.724716 0.724764 -0.200000 1.842122 1.842111 0.200000 1.842122 1.842111 0.600000 0.724716 0.724764 1.000000 -0.832294 -0.831887 Cos(2x) -1.000000 1.818595 1.818577 -0.600000 1.864078 1.864082 -0.200000 0.778837 0.778828 0.200000 -0.778837 -0.778828 0.600000 -1.864078 -1.864082 1.000000 -1.818595 -1.818577 x^5 -1.000000 5.000000 5.000000 -0.600000 0.648000 0.648000 -0.200000 0.008000 0.008000 0.200000 0.008000 0.008000 0.600000 0.648000 0.648000 1.000000 5.000000 5.000000 MLTPLY_TEST MLTPLY computes the product of two Chebyshev series. Multiply series for SIN(X) and COS(X) and compare with series for 1/2*SIN(2X). Sin(x) Cos(x) 1/2*Sin(2x) RESULT 0.000000 1.530395 0.000000 0.000000 0.880101 0.000000 0.576725 0.576725 0.000000 -0.229807 0.000000 0.000000 -0.039127 0.000000 -0.128943 -0.128943 -0.000000 0.004953 -0.000000 -0.000000 0.000500 -0.000000 0.007040 0.007040 0.000000 -0.000042 0.000000 -0.000000 -0.000003 -0.000000 -0.000175 -0.000175 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000005 0.000003 NTGRT_TEST NTGRT computes the Chebyshev series for the indefinite integral of several functions. Chebyshev series for indefinite integral of: Sin(x) Cos(x) Sin(2x) Cos(2x) X^5 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.880101 -0.000000 0.576725 0.000000 0.229807 0.000000 0.352834 -0.000000 0.078125 0.000000 -0.039127 0.000000 -0.128943 0.000000 -0.004953 0.000000 -0.033996 0.000000 0.031250 -0.000000 0.000500 -0.000000 0.007040 0.000000 0.000042 -0.000000 0.001202 0.000000 0.005208 0.000000 -0.000003 0.000000 -0.000175 0.000000 -0.000000 -0.000000 -0.000022 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000002 -0.000000 TOMS446_TEST Normal end of execution. 27 February 2022 09:49:30 AM