TOMS446_PRB Test TOMS algorithm 446, routines to manipulate Chebyshev series. TEST01 Test CHEBY, which computes the Chebyshev series for several functions. Sin(x) Cos(x) Sin(2x) Cos(2x) X^5 0.0000 1.5304 0.0000 0.4478 0.0000 0.8801 0.0000 1.1534 0.0000 0.6250 0.0000 -0.2298 0.0000 -0.7057 0.0000 -0.0391 0.0000 -0.2579 0.0000 0.3125 0.0000 0.0050 0.0000 0.0680 0.0000 0.0005 0.0000 0.0141 0.0000 0.0625 0.0000 0.0000 0.0000 -0.0024 0.0000 0.0000 0.0000 -0.0003 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 TEST02 Test MLTPLY, which 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.0000 1.5304 0.0000 0.0000 0.8801 0.0000 0.5767 0.5767 0.0000 -0.2298 0.0000 0.0000 -0.0391 0.0000 -0.1289 -0.1289 0.0000 0.0050 0.0000 0.0000 0.0005 0.0000 0.0070 0.0070 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 -0.0002 -0.0002 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 TEST03 Test ECHEB, which evaluates a Chebyshev series. Sin(x) -1.0000 -0.8415 -0.8415 -0.6000 -0.5646 -0.5646 -0.2000 -0.1987 -0.1987 0.2000 0.1987 0.1987 0.6000 0.5646 0.5646 1.0000 0.8415 0.8415 Cos(x) -1.0000 0.5403 0.5403 -0.6000 0.8253 0.8253 -0.2000 0.9801 0.9801 0.2000 0.9801 0.9801 0.6000 0.8253 0.8253 1.0000 0.5403 0.5403 Sin(2x) -1.0000 -0.9093 -0.9093 -0.6000 -0.9320 -0.9320 -0.2000 -0.3894 -0.3894 0.2000 0.3894 0.3894 0.6000 0.9320 0.9320 1.0000 0.9093 0.9093 Cos(2x) -1.0000 -0.4161 -0.4161 -0.6000 0.3624 0.3624 -0.2000 0.9211 0.9211 0.2000 0.9211 0.9211 0.6000 0.3624 0.3624 1.0000 -0.4161 -0.4161 x^5 -1.0000 -1.0000 -1.0000 -0.6000 -0.0778 -0.0778 -0.2000 -0.0003 -0.0003 0.2000 0.0003 0.0003 0.6000 0.0778 0.0778 1.0000 1.0000 1.0000 TEST04 Test EDCHEB, which evaluates the derivative of a Chebyshev series. d/dx Sin(x) -1.0000 0.5403 0.5403 -0.6000 0.8253 0.8253 -0.2000 0.9801 0.9801 0.2000 0.9801 0.9801 0.6000 0.8253 0.8253 1.0000 0.5403 0.5403 d/dx Cos(x) -1.0000 0.8415 0.8415 -0.6000 0.5646 0.5646 -0.2000 0.1987 0.1987 0.2000 -0.1987 -0.1987 0.6000 -0.5646 -0.5646 1.0000 -0.8415 -0.8415 d/dx Sin(2x) -1.0000 -0.8323 -0.8319 -0.6000 0.7247 0.7248 -0.2000 1.8421 1.8421 0.2000 1.8421 1.8421 0.6000 0.7247 0.7248 1.0000 -0.8323 -0.8319 d/dx Cos(2x) -1.0000 1.8186 1.8186 -0.6000 1.8641 1.8641 -0.2000 0.7788 0.7788 0.2000 -0.7788 -0.7788 0.6000 -1.8641 -1.8641 1.0000 -1.8186 -1.8186 d/dx x^5 -1.0000 5.0000 5.0000 -0.6000 0.6480 0.6480 -0.2000 0.0080 0.0080 0.2000 0.0080 0.0080 0.6000 0.6480 0.6480 1.0000 5.0000 5.0000 TEST05 Test DFRNT, which 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.5304 0.0000 0.8957 0.0000 3.7500 0.0000 -0.8801 0.0000 -2.3069 0.0000 -0.2298 0.0000 -1.4112 0.0000 2.5000 0.0000 0.0391 0.0000 0.5158 0.0000 0.0050 0.0000 0.1361 0.0000 0.6250 0.0000 -0.0005 0.0000 -0.0282 0.0000 0.0000 0.0000 -0.0047 0.0000 0.0000 0.0000 0.0000 0.0000 0.0007 0.0000 0.0000 0.0000 0.0002 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 TEST06 Test NTGRT, which computes the Chebyshev series for the indefinite integral of several functions. Series for indefinite integral of: Sin(x) Cos(x) Sin(2x) Cos(2x) X^5 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.8801 0.0000 0.5767 0.0000 0.2298 0.0000 0.3528 0.0000 0.0781 0.0000 -0.0391 0.0000 -0.1289 0.0000 -0.0050 0.0000 -0.0340 0.0000 0.0312 0.0000 0.0005 0.0000 0.0070 0.0000 0.0000 0.0000 0.0012 0.0000 0.0052 0.0000 0.0000 0.0000 -0.0002 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 TOMS446_PRB Normal end of execution.