
238 Introduction to Computational Models with Python
16.6 EXERCISES
16.1 On a typical spring day, the temp e rature varies acc ording to the data
recorded in Table 16.1. Develop a Python program and apply linear
interpolation to compute estimates of intermediate values of the tem-
perature. Produce a plot of the given and estimated data.
Table 16.1 Tempera ture changes in a 12-hour per iod.
Time 7 8 9 10 11 12 1 2 3 4 5 6
Temp. (F
0
) 51 56 60 65 73 78 85 86 84 8 1 80 70
16.2 On a typical spring day, the temp e rature varies acc ording to the data
recorded in Table 16.1. Develop a P ython program and apply cubic
spline interpolation to compute estimates ...