Question C.3.5: Consider again Example C.1.2. A hole 6 mm in diameter was ma...

Consider again Example C.1.2. A hole 6 mm in diameter was made in a translucent milk container (Figure C.1.7). A series of marks 1 cm apart was made above the hole. While adjusting the tap flow to keep the water height constant, the time for the outflow to fill a 250 ml cup was measured (1 ml = 10^{−6} m³). This was repeated for several heights. The data are given in the following table.

\begin{array}{l|lllllllllll}\text{Height}  h( cm ) & 11 & 10 & 9 & 8 & 7 & 6 & 5 & 4 & 3 & 2 & 1 \\\hline \text{Time}  t( s ) & 7 & 7.5 & 8 & 8.5 & 9 & 9.5 & 11 & 12 & 14 & 19 & 26\end{array}

Obtain a functional description of the volume outflow rate f as a function of water height h above the hole.

152624-Figure C.1.7
The 'Blue Check Mark' means that either the MATLAB code/script/answer provided in the answer section has been tested by our team of experts; or the answer in general has be fact checked.

Learn more on how do we answer questions.

First obtain the flow rate data in ml/s by dividing the 250 ml volume by the time to fill:

f=\frac{250}{t}              (1)

In Example C.1.2, we learned that the following power function can describe the data:

f=b h^m                  (2)

We can find the values of m and b by using p = polyfit(log10(x),log10(y),1). The first element p_1 of the vector p will be m, and the second element p_2 will be log b. We can find b from b = 10^{p_2} . The following MATLAB program performs the calculations.

% Enter the data.
h = (1:11);
time = [26, 19, 14, 12, 11, 9.5, 9, 8.5, 8, 7.5, 7];
% Compute the flow rate from (1) and its logarithm.
flow = 250./time;

logflow = log10(flow);logheight = log10(h);
% Fit a first-degree polynomial.
p = polyfit(logheight,logflow, 1);
% Compute m and b from the polynomial coefficients.
m = p(1),b = 10ˆp(2)
% Compute f from (2).
f = b*h.ˆm;
% Compute J, S, and r squared.
J = sum((f - flow).ˆ2)
S = sum((flow - mean(flow)).ˆ2)
r2 = 1 - J/S

The results are m = 0.5499 and b = 9.4956, and the corresponding function is

f=b h^m=9.4956 h^{0.5499}

The quality-of-fit values are J = 2.5011, S = 698.2203, and r² = 0.9964, which indicates a very good fit.

Related Answered Questions

Question: C.2.3

Verified Answer:

The least-squares criterion is J=\sum_{i=1}...
Question: C.2.2

Verified Answer:

Subtracting 10 from all the x values and 11 from a...
Question: C.2.1

Verified Answer:

These data do not lie close to a straight line whe...