You are on page 1of 5

>> chebyshev_interp_1d_test

16-Sep-2012 15:41:23
CHEBYSHEV_INTERP_1D_TEST:
MATLAB version
Test the CHEBYSHEV_INTERP_1D library.
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #1.
Number of data points = 18
Data array:
Row:
Col
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

1
0.000000
1.000000
2.000000
4.000000
5.000000
6.000000
7.000000
8.000000
9.000000
10.000000
11.000000
12.000000
13.000000
14.000000
15.000000
16.000000
17.000000
18.000000

2
4.000000
5.000000
6.000000
6.000000
5.000000
3.000000
1.000000
1.000000
1.000000
3.000000
4.000000
4.000000
3.000000
3.000000
4.000000
4.000000
3.000000
0.000000

L2 interpolation error averaged per interpolant node = 1.90032e-14


Normalized length of piecewise linear interpolant = 3.13553
Normalized length of polynomial interpolant
= 559.096
Created plot file "p01_data.png".
Created plot file "p01_poly.png".
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #2.
Number of data points = 18
Data array:
Row:
Col
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:

1
0.000000
1.340000
5.000000
10.000000
10.600000
10.700000
10.705000
10.800000
11.400000
19.600000

2
0.000000
5.000000
8.660000
10.000000
10.400000
12.000000
28.600000
30.200000
30.600000
30.600000

11:
12:
13:
14:
15:
16:
17:
18:

20.200000
20.295000
20.300000
20.400000
21.000000
26.000000
29.660000
31.000000

30.200000
28.600000
12.000000
10.400000
10.000000
8.660000
5.000000
0.000000

L2 interpolation error averaged per interpolant node = 1.62007e-06


Normalized length of piecewise linear interpolant = 2.66086
Normalized length of polynomial interpolant
= 7.44384e+09
Created plot file "p02_data.png".
Created plot file "p02_poly.png".
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #3.
Number of data points = 11
Data array:
Row:
Col
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

1
0.000000
2.000000
3.000000
5.000000
6.000000
8.000000
9.000000
11.000000
12.000000
14.000000
15.000000

2
0.000000
10.000000
10.000000
10.000000
10.000000
10.000000
10.500000
15.000000
50.000000
60.000000
85.000000

L2 interpolation error averaged per interpolant node = 2.61888e-15


Normalized length of piecewise linear interpolant = 1.68472
Normalized length of polynomial interpolant
= 4.30657
Created plot file "p03_data.png".
Created plot file "p03_poly.png".
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #4.
Number of data points = 8
Data array:
Row:
Col
1:
2:
3:
4:
5:
6:
7:

1
0.000000
0.050000
0.100000
0.200000
0.800000
0.850000
0.900000

2
0.000000
0.700000
1.000000
1.000000
0.300000
0.050000
0.100000

8:

1.000000

1.000000

L2 interpolation error averaged per interpolant node = 6.8801e-17


Normalized length of piecewise linear interpolant = 3.25908
Normalized length of polynomial interpolant
= 5.38186
Created plot file "p04_data.png".
Created plot file "p04_poly.png".
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #5.
Number of data points = 9
Data array:
Row:
Col
1:
2:
3:
4:
5:
6:
7:
8:
9:

1
0.000000
0.100000
0.200000
0.300000
0.400000
0.500000
0.600000
0.800000
1.000000

2
0.000000
0.900000
0.950000
0.900000
0.100000
0.050000
0.050000
0.200000
1.000000

L2 interpolation error averaged per interpolant node = 2.44573e-16


Normalized length of piecewise linear interpolant = 3.2218
Normalized length of polynomial interpolant
= 37.1961
Created plot file "p05_data.png".
Created plot file "p05_poly.png".
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #6.
Number of data points = 49
Data array:
Row:
Col
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:

1
595.000000
605.000000
615.000000
625.000000
635.000000
645.000000
655.000000
665.000000
675.000000
685.000000
695.000000
705.000000
715.000000
725.000000
735.000000
745.000000

2
0.644000
0.622000
0.638000
0.649000
0.652000
0.639000
0.646000
0.657000
0.652000
0.655000
0.644000
0.663000
0.663000
0.668000
0.676000
0.676000

17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:

755.000000
765.000000
775.000000
785.000000
795.000000
805.000000
815.000000
825.000000
835.000000
845.000000
855.000000
865.000000
875.000000
885.000000
895.000000
905.000000
915.000000
925.000000
935.000000
945.000000
955.000000
965.000000
975.000000
985.000000
995.000000
1005.000000
1015.000000
1025.000000
1035.000000
1045.000000
1055.000000
1065.000000
1075.000000

0.686000
0.679000
0.678000
0.683000
0.694000
0.699000
0.710000
0.730000
0.763000
0.812000
0.907000
1.044000
1.336000
1.881000
2.169000
2.075000
1.598000
1.211000
0.916000
0.746000
0.672000
0.627000
0.615000
0.607000
0.606000
0.609000
0.603000
0.601000
0.603000
0.601000
0.611000
0.601000
0.608000

L2 interpolation error averaged per interpolant node = 6.96947e-08


Normalized length of piecewise linear interpolant = 2.68209
Normalized length of polynomial interpolant
= 5.51506e+09
Created plot file "p06_data.png".
Created plot file "p06_poly.png".
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #7.
Number of data points = 4
Data array:
Row:
Col
1:
2:
3:
4:

1
0.000000
1.000000
4.000000
5.000000

2
1.000000
2.000000
2.000000
1.000000

L2 interpolation error averaged per interpolant node = 1.11022e-16


Normalized length of piecewise linear interpolant = 2.63961
Normalized length of polynomial interpolant
= 3.36731

Created plot file "p07_data.png".


Created plot file "p07_poly.png".
CHEBYSHEV_INTERP_1D_TEST01:
Interpolate data from TEST_INTERP problem #8.
Number of data points = 12
Data array:
Row:
Col
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:

1
-1.000000
-0.800000
-0.600000
-0.400000
-0.200000
0.000000
0.200000
0.200010
0.400000
0.600000
0.800000
1.000000

2
1.000000
0.640000
0.360000
0.160000
0.040000
0.000000
0.040000
0.050000
0.160000
0.360000
0.640000
1.000000

L2 interpolation error averaged per interpolant node = 3.15534e-13


Normalized length of piecewise linear interpolant = 2.31939
Normalized length of polynomial interpolant
= 23167
Created plot file "p08_data.png".
Created plot file "p08_poly.png".
CHEBYSHEV_INTERP_1D_TEST:
Normal end of execution.
16-Sep-2012 15:41:29
>>

You might also like