NAG Library Manual, Mark 28.3
Interfaces:  FL   CL   CPP   AD 

NAG CL Interface Introduction
Example description

nag_fit_dim1_cheb_arb (e02adc) Example Program Results 

 Degree   0   R.M.S. residual =    4.07e+00

   J  Chebyshev coeff A(J) 
   1        12.1740

 Degree   1   R.M.S. residual =    4.28e+00

   J  Chebyshev coeff A(J) 
   1        12.2954
   2         0.2740

 Degree   2   R.M.S. residual =    1.69e+00

   J  Chebyshev coeff A(J) 
   1        20.7345
   2         6.2016
   3         8.1876

 Degree   3   R.M.S. residual =    6.82e-02

   J  Chebyshev coeff A(J) 
   1        24.1429
   2         9.4065
   3        10.8400
   4         3.0589

 Polynomial approximation and residuals for degree   3

   R   Abscissa     Weight   Ordinate  Polynomial  Residual 
   1     1.0000     1.0000    10.4000    10.4461   4.61e-02
         1.5500                           9.3106
   2     2.1000     1.0000     7.9000     7.7977  -1.02e-01
         2.6000                           6.2555
   3     3.1000     1.0000     4.7000     4.7025   2.52e-03
         3.5000                           3.5488
   4     3.9000     1.0000     2.5000     2.5533   5.33e-02
         4.4000                           1.6435
   5     4.9000     1.0000     1.2000     1.2390   3.90e-02
         5.3500                           1.4257
   6     5.8000     0.8000     2.2000     2.2425   4.25e-02
         6.1500                           3.3803
   7     6.5000     0.8000     5.1000     5.0116  -8.84e-02
         6.8000                           6.8400
   8     7.1000     0.7000     9.2000     9.0982  -1.02e-01
         7.4500                          12.3171
   9     7.8000     0.5000    16.1000    16.2123   1.12e-01
         8.1000                          20.1266
  10     8.4000     0.3000    24.5000    24.6048   1.05e-01
         8.7000                          29.6779
  11     9.0000     0.2000    35.3000    35.3769   7.69e-02