27 June 2009 09:38:53 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 "C++". // // Weights W, abscissas X and range R // for a Clenshaw Curtis quadrature rule // ORDER = 4 // // Standard rule: // Integral ( -1 <= x <= +1 ) f(x) dx // is to be approximated by // sum ( 1 <= I <= ORDER ) w(i) * f(x(i)). // w[0] = 0.1111111111111111; w[1] = 0.8888888888888888; w[2] = 0.8888888888888892; w[3] = 0.1111111111111111; x[0] = -1; x[1] = -0.4999999999999998; x[2] = 0.5000000000000001; x[3] = 1; r[0] = -1; r[1] = 1; CLENSHAW_CURTIS_RULE: Normal end of execution. 27 June 2009 09:38:53 PM