22 Section 6.5
The number of subintervals needed to guarantee an absolute error not greater than
10−6from the composite Simpson’s rule satisfies
27. Ammonia vapor is compressed inside a cylinder by an external force acting on
the piston. The following data give the volume, v, measured in liters, and the
pressure, p, measured in kilopascals.
v0.50 0.60 0.72 0.84 0.96 1.08 1.25
p1400 1248 1100 945 802 653 500
The work for the process is given by the integral
Z1.25
0.5
p dv.
Estimate the work done in the following ways:
(a) using the trapezoidal rule;
(b) by passing a cubic spline through the data and then integrating the spline.
(a) Because the change in vdoes not remain constant from measurement to mea-
(b) The coefficients of the not-a-knot cubic spline are