You are on page 1of 30

This workbook shows some examples of how to use the functions that are included in SRS1 Cubic Sp

on our website at:

http://www.srs1software.com/srs1cubicspline.aspx

Note:

(1) You must have the 'SRS1 Cubic Spline for Excel' (Version 2.5 or later) installed for the functions in

(2) For each function, we show two ways to calculate the results. The functions in 'SRS1 Cubic Splin
output formulas and 'array output' formulas. Both work fine, but if you are calculating many values,
downside of using the 'Array formulas' method is that it is more confusing to use. To see a video de
section of our 'Data Curve Fit Creator Add-in' product page:

(3) The last worksheet in this workbook ("ConstrainedSplines") demonstrates an example of where th

http://www.srs1software.com/DataCurveFitCreator.aspx

----------------------------------------------------------

For more information, visit our website at: http://www.srs1software.com


ncluded in SRS1 Cubic Spline for Excel. For more information, see the product page

talled for the functions in this demo workbook to work properly

ions in 'SRS1 Cubic Spline for Excel' are made to work as both standard single value
calculating many values, then the 'array formula' method can calculate faster. The
to use. To see a video demo of how to use 'array formulas', see the video demo

s an example of where the Bessel spline and OneWay spline might be useful.
Source Data Linear Interpolation
X Y X Y Y
2 0 2 0 #NAME?
4 1 2.2 0.1 #NAME?
5 2 2.4 0.2 #NAME?
7 5 2.6 0.3 #NAME?
9 6.5 2.8 0.4 #NAME?
11 7 3 0.5 #NAME?
3.2 0.6 #NAME?
3.4 0.7 #NAME?
3.6 0.8 #NAME?
3.8 0.9 #NAME?
4 1 #NAME?
4.2 1.2 #NAME?
4.4 1.4 #NAME?
4.6 1.6 #NAME?
4.8 1.8 #NAME?
5 2 #NAME?
5.2 2.3 #NAME?
5.4 2.6 #NAME?
5.6 2.9 #NAME?
5.8 3.2 #NAME?
6 3.5 #NAME?
6.2 3.8 #NAME?
6.4 4.1 #NAME?
6.6 4.4 #NAME?
6.8 4.7 #NAME?
7 5 #NAME?
7.2 5.15 #NAME?
7.4 5.3 #NAME?
7.6 5.45 #NAME?
7.8 5.6 #NAME?
8 5.75 #NAME?
8.2 5.9 #NAME?
8.4 6.05 #NAME?
8.6 6.2 #NAME?
8.8 6.35 #NAME?
9 6.5 #NAME?
9.2 6.55 #NAME?
9.4 6.6 #NAME?
9.6 6.65 #NAME?
9.8 6.7 #NAME?
10 6.75 #NAME?
10.2 6.8 #NAME?
10.4 6.85 #NAME?
10.6 6.9 #NAME?
10.8 6.95 #NAME?
11 7 #NAME?
8

4 Y
Linear Interpolation
3

0
0 2 4 6 8 10 12
Source Data Cubic Spline
X Y X Y Y
2 0 2 0 #NAME?
4 1 2.2 0.074264 #NAME?
5 2 2.4 0.150088 #NAME?
7 5 2.6 0.229031 #NAME?
9 6.5 2.8 0.312654 #NAME?
11 7 3 0.402516 #NAME?
3.2 0.500176 #NAME?
3.4 0.607195 #NAME?
3.6 0.725132 #NAME?
3.8 0.855547 #NAME?
4 1 #NAME?
4.2 1.160151 #NAME?
4.4 1.338063 #NAME?
4.6 1.535899 #NAME?
4.8 1.755824 #NAME?
5 2 #NAME?
5.2 2.26934 #NAME?
5.4 2.559748 #NAME?
5.6 2.865881 #NAME?
5.8 3.18239 #NAME?
6 3.503931 #NAME?
6.2 3.825157 #NAME?
6.4 4.140723 #NAME?
6.6 4.445283 #NAME?
6.8 4.733491 #NAME?
7 5 #NAME?
7.2 5.24067 #NAME?
7.4 5.456176 #NAME?
7.6 5.648399 #NAME?
7.8 5.81922 #NAME?
8 5.970519 #NAME?
8.2 6.104176 #NAME?
8.4 6.222072 #NAME?
8.6 6.326088 #NAME?
8.8 6.418104 #NAME?
9 6.5 #NAME?
9.2 6.573481 #NAME?
9.4 6.639547 #NAME?
9.6 6.699022 #NAME?
9.8 6.75273 #NAME?
10 6.801494 #NAME?
10.2 6.846138 #NAME?
10.4 6.887487 #NAME?
10.6 6.926365 #NAME?
10.8 6.963594 #NAME?
11 7 #NAME?
8

4 Y
Cubic Spline
3

0
0 2 4 6 8 10 12
bic Spline
Source Data Bessel spline
X Y X Y Y
2 0 2 0 #NAME?
4 1 2.2 0.04 #NAME?
5 2 2.4 0.093333 #NAME?
7 5 2.6 0.16 #NAME?
9 6.5 2.8 0.24 #NAME?
11 7 3 0.333333 #NAME?
3.2 0.44 #NAME?
3.4 0.56 #NAME?
3.6 0.693333 #NAME?
3.8 0.84 #NAME?
4 1 #NAME?
4.2 1.173333 #NAME?
4.4 1.36 #NAME?
4.6 1.56 #NAME?
4.8 1.773333 #NAME?
5 2 #NAME?
5.2 2.25275 #NAME?
5.4 2.538667 #NAME?
5.6 2.84925 #NAME?
5.8 3.176 #NAME?
6 3.510417 #NAME?
6.2 3.844 #NAME?
6.4 4.16825 #NAME?
6.6 4.474667 #NAME?
6.8 4.75475 #NAME?
7 5 #NAME?
7.2 5.21525 #NAME?
7.4 5.412 #NAME?
7.6 5.59175 #NAME?
7.8 5.756 #NAME?
8 5.90625 #NAME?
8.2 6.044 #NAME?
8.4 6.17075 #NAME?
8.6 6.288 #NAME?
8.8 6.39725 #NAME?
9 6.5 #NAME?
9.2 6.595 #NAME?
9.4 6.68 #NAME?
9.6 6.755 #NAME?
9.8 6.82 #NAME?
10 6.875 #NAME?
10.2 6.92 #NAME?
10.4 6.955 #NAME?
10.6 6.98 #NAME?
10.8 6.995 #NAME?
11 7 #NAME?
8

4 Y
Bessel spline
3

0
0 2 4 6 8 10 12
sel spline
Source Data OneWay Spline
X Y X Y Y
2 0 2 0 #NAME?
4 1 2.2 0.04 #NAME?
5 2 2.4 0.093333 #NAME?
7 5 2.6 0.16 #NAME?
9 6.5 2.8 0.24 #NAME?
11 7 3 0.333333 #NAME?
3.2 0.44 #NAME?
3.4 0.56 #NAME?
3.6 0.693333 #NAME?
3.8 0.84 #NAME?
4 1 #NAME?
4.2 1.173333 #NAME?
4.4 1.36 #NAME?
4.6 1.56 #NAME?
4.8 1.773333 #NAME?
5 2 #NAME?
5.2 2.25275 #NAME?
5.4 2.538667 #NAME?
5.6 2.84925 #NAME?
5.8 3.176 #NAME?
6 3.510417 #NAME?
6.2 3.844 #NAME?
6.4 4.16825 #NAME?
6.6 4.474667 #NAME?
6.8 4.75475 #NAME?
7 5 #NAME?
7.2 5.21525 #NAME?
7.4 5.412 #NAME?
7.6 5.59175 #NAME?
7.8 5.756 #NAME?
8 5.90625 #NAME?
8.2 6.044 #NAME?
8.4 6.17075 #NAME?
8.6 6.288 #NAME?
8.8 6.39725 #NAME?
9 6.5 #NAME?
9.2 6.595 #NAME?
9.4 6.68 #NAME?
9.6 6.755 #NAME?
9.8 6.82 #NAME?
10 6.875 #NAME?
10.2 6.92 #NAME?
10.4 6.955 #NAME?
10.6 6.98 #NAME?
10.8 6.995 #NAME?
11 7 #NAME?
8

4 Y
OneWay Spline
3

0
0 2 4 6 8 10 12
Way Spline
Constrained Splines Sample

This set of data shows the benefits of using Bessel and OneWay splines. These splines generally
reduce the amount of unwanted oscillations ("wiggles" or "overshoot") in an interpolation. The
OneWay spline contrains the interpolation the most.

For this particular source data, the cubic spline interpolation displays some overshoot. This
might not be what wanted. The Bessel Spline partially eliminates this, and the OneWay spline
totally eliminates this

The interpolation values are calculated for each type of interpolation in the data grid below here.
The plot for each type of interpolation can be displayed by selecting the corresponding drop
down value from the yellow cell above the plot (N2).

Source Data Compare interpolations


X Y X LinInterp Cubic Bessel OneWay
1 2 1 2.000 2.000 2.000 2.000
2 2.01 1.1 2.001 2.014 2.000 2.000
3 2.1 1.2 2.002 2.028 1.999 2.000
4 3.9 1.3 2.003 2.039 1.999 2.001
5 3.99 1.4 2.004 2.049 1.999 2.002
6 4 1.5 2.005 2.055 1.999 2.003
1.6 2.006 2.057 1.999 2.004
1.7 2.007 2.055 2.000 2.005
1.8 2.008 2.046 2.003 2.006
1.9 2.009 2.032 2.006 2.008
2 2.010 2.010 2.010 2.010
2.1 2.019 1.981 2.008 2.013
2.2 2.028 1.948 1.996 2.016
2.3 2.037 1.917 1.977 2.021
2.4 2.046 1.891 1.958 2.027
2.5 2.055 1.875 1.943 2.035
2.6 2.064 1.873 1.937 2.044
2.7 2.073 1.890 1.945 2.055
2.8 2.082 1.931 1.971 2.068
2.9 2.091 1.999 2.021 2.083
3 2.100 2.100 2.100 2.100
3.1 2.280 2.236 2.218 2.163
3.2 2.460 2.401 2.378 2.304
3.3 2.640 2.588 2.568 2.504
3.4 2.820 2.791 2.779 2.742
3.5 3.000 3.000 3.000 3.000
3.6 3.180 3.209 3.221 3.258
3.7 3.360 3.412 3.432 3.496
3.8 3.540 3.599 3.622 3.696
3.9 3.720 3.764 3.782 3.837
4 3.900 3.900 3.900 3.900
4.1 3.909 4.001 3.979 3.917
4.2 3.918 4.069 4.029 3.932
4.3 3.927 4.110 4.055 3.945
4.4 3.936 4.127 4.063 3.956
4.5 3.945 4.125 4.057 3.965
4.6 3.954 4.109 4.042 3.973
4.7 3.963 4.083 4.023 3.979
4.8 3.972 4.052 4.004 3.984
4.9 3.981 4.019 3.992 3.987
5 3.990 3.990 3.990 3.990
5.1 3.991 3.968 3.994 3.992
5.2 3.992 3.954 3.997 3.994
5.3 3.993 3.945 4.000 3.995
5.4 3.994 3.943 4.001 3.996
5.5 3.995 3.945 4.001 3.998
5.6 3.996 3.951 4.001 3.998
5.7 3.997 3.961 4.001 3.999
5.8 3.998 3.972 4.001 4.000
5.9 3.999 3.986 4.000 4.000
6 4.000 4.000 4.000 4.000
Choose what to Plot: Cubic
e splines generally
terpolation. The
X
4.5 Cubic
1 2
ershoot. This 1.1 2.01423
4
e OneWay spline 1.2 2.027658
1.3 2.039483
3.5
1.4 2.048902
ta grid below here.
1.5 2.055114
sponding drop
1.63 2.057316
1.7 2.054708
2.5
1.8 2.046487
1.9 2.031852
22 2.01
2.1 1.981012
2.2
1.5 1.948495
2.3 1.916937
2.41 1.890829
2.5 1.874659
2.6
0.5
1.872916
2.7 1.89009
2.8 1.930669
0
2.9 1.999143
0 1 2 3 4 5
3 2.1
3.1 2.235753
3.2 2.401004
3.3 2.588378
3.4 2.790502
3.5 3
3.6 3.209498
3.7 3.411622
3.8 3.598996
3.9 3.764247
4 3.9
4.1 4.000857
4.2 4.069331
4.3 4.10991
4.4 4.127084
4.5 4.125341
4.6 4.109171
4.7 4.083063
4.8 4.051505
4.9 4.018988
5 3.99
5.1 3.968148
5.2 3.953513
5.3 3.945292
5.4 3.942684
5.5 3.944886
5.6 3.951098
5.7 3.960517
5.8 3.972342
5.9 3.98577
6 4
Y
Column L

4 5 6 7

You might also like