27 June 2009 09:39:01 PM CLENSHAW_CURTIS_RULE C++ version Compiled on Jun 27 2009 at 21:35:17. Compute a Clenshaw Curtis rule for approximating Integral ( -1 <= x <= +1 ) f(x) dx of order ORDER. The user specifies ORDER and OUTPUT. OUTPUT is: "C++" for printed C++ output; "F77" for printed Fortran77 output; "F90" for printed Fortran90 output; "MAT" for printed MATLAB output; or: "filename" to generate 3 files: filename_w.txt - the weight file filename_x.txt - the abscissa file. filename_r.txt - the region file. The requested order of the rule is = 4 OUTPUT option is "F77". c c Weights W, abscissas X and range R c for a Clenshaw Curtis quadrature rule c ORDER = 4 c c Standard rule: c Integral ( -1 <= x <= +1 ) f(x) dx c is to be approximated by c sum ( 1 <= I <= ORDER ) w(i) * f(x(i)). c w(1) = 0.1111111111111111 w(2) = 0.8888888888888888 w(3) = 0.8888888888888892 w(4) = 0.1111111111111111 x(1) = -1 x(2) = -0.4999999999999998 x(3) = 0.5000000000000001 x(4) = 1 r(1) = -1 r(2) = 1 CLENSHAW_CURTIS_RULE: Normal end of execution. 27 June 2009 09:39:01 PM