Académique Documents
Professionnel Documents
Culture Documents
Answers
CHAPTER 2
5. Some possible improvements include:
n
Unlocking the input cells, then protecting the worksheet so that
formulas are not accidentally changed or deleted. See Exercise 5 in
Chapter 5.
n
Having output cells not display zeroes. This can be done with custom
formatting. Alternatively, use the Office tab to open the Excel
Options dialog, locate the Advanced tab and in Display Options
for this worksheet, uncheck the box Show zeroes in cells that have
zero values.
n
Using the ROUND function to have integer values displayed for
Packages Needed.
n
Write VBA code (Chapter 10) that would clear all the input cells
when a control on the worksheet was clicked.
6. The formulas are shown below. The factor 24 converts time in days to
time in hours.
A5-A4
B5-B4
E5/(D5*24)
(B5-B4)/((A5-A4)*24)
CHAPTER 4
1. The required formulas are shown below.
B7
C7
D7
E7
F7
G7
B3*(C6-B6)/(C5-B5)
$B$3*(D6-B6)/(D5-B5)
$B$3*(E6-C6)/(E5-C5)
$B$3*(F6-D6)/(F5-D5)
$B$3*(G6-E6)/(G5-E5)
B3*(G6-F6)(G5-F5)
347
COUNT(B3:G3)
SUMPRODUCT(B3:G3,B4:G4)
SUM(B3:G3)
SUM(B4:G4)
SUMSQ(B3:G3)
(B6*B7-B8*B9)/(B6*B10-B8^2)
(B9-E7*B8)/B6
0.5*PI()*B4^2
B4^2*ASIN(B5/B4)
B5*SQRT(B4^2-B5^2)
B3*(E3-E4-E5)
CONVERT(E6,"ft^3","gal")
CONVERT(E6,"ft^3","uk_gal")
ft3
US gallons
UK gallons
CHAPTER 5
1. These give the required result:
4
6
72
MATCH(B4,frame,0)+1
MATCH(B3,height,0)
INDEX(F2:H16,MATCH(B3,height,1),MATCH(B4,frame,0))
CHAPTER 7
1. The curve in the chart is made in the normal way from a table with
height values in one column and volume values (in gallons) in another.
The worksheet shows that when h 0 the maximum volume is 264.4 gals.
Experimentation shows that 700 gives a volume of 136.9 gals which is
close enough to half the maximum for plotting purposes. The data shown
below is added to the chart using the Copy and Paste Special technique.
The shape is added with Insert / Illustrations j Shapes.
x
0
7
7
136.9
136.9
0
3. The figure below (note that some rows have been hidden to make the
figure small) shows a possible layout for the worksheet. The formulas in
D5:E5 are:
D5:
IF(D4+Increment<Radius,D4+Increment,NA())
E5:
(Radius^2*ACOS((Radius-D5)/Radius)-(Radius-D5)*SQRT(2*Radius*D5-D5^2))*Length
CHAPTER 8
1. In keeping with Hubbles law, a straight line gives a good fit to this data.
The slope (Hubbles constant) is 66.25.
2. (a) Here are two graphical methods. For those who are more
comfortable with the idea that a line of best fit needs to be a
straight line, the top chart gives k 0.0008517. The more direct
approach in the lower chart gives the same result. Note the intercept
was set to zero in the linear chart and to 1 in the exponential chart.
(b) Since we want only the slope, we can use LINEST or LOGEST in a
single cell and not bother with making them array functions. Note
that in this case SLOPE and LINEST are the same when the
intercept is not fixed.
Function
Formula
Comment
LINEST
8.952E-04
SLOPE
LOGEST
8.735E-04
8.735E-04
8.952E-04
-LINEST(C4:C7,A4:A7,
FALSE)
-LINEST(C4:C7,A4:A7,TRUE)
-SLOPE(LN(1-B4:B7),A4:A7)
-LN(LOGEST((1-B4:B7),A4:
A7,FALSE))
-LN(LOGEST((1-B4:B7),A4:
A7,TRUE))
8.735E-04
9. The plot for the two equations fail to answer the question; do not let
a small difference in R2 lead you astray. Also, be aware that a log-log
plot nearly always results in a straight line, so it tells you little.
10. Using formulas (SLOPE and INTERCEPT, or LINEST) or making a
plot with a trendline shows that the relationship is C20 3.86T140.78,
where C20 is the count in a 20 s interval and T is the temperature in
Fahrenheit.
For the second part: solve the above relationship to find T, replacing C20 by
4C5 to get T 1.03C5 + 36.48 where C5 is the count in a 5 s interval and T is
the temperature in Fahrenheit. Alternatively, we make a new table with C5
values in first column and T values in the second, then using any of the
methods above we find the relationship T 1.01C5 + 37.08. This bears out
the conjecture that adding 40 (or 37) to the chirps in 5 s gives a good approximation to the temperature.
CHAPTER 9
2. The figure below shows a test worksheet in which the pressure drop
is computed both with a worksheet function in column F (using
intermediate values in column D) and with a UDF in column G.
CHAPTER 10
2. The screenshot below shows a suitable worksheet. The solution can be
found on worksheet Problem 2 and its associated VBA module the
file AnswersChap10.xlsm on the companion website. Note how a
subroutine can return error messages, which is something a UDF cannot
do. You could incorporate conditional formatting on the worksheet; row
4 might be red, green or blue depending the value in C4. The shape
labeled Force is assigned to the subroutine, clicking it causes the
subroutine to be executed.
CHAPTER 11
1. In the figure on the right above, B10 finds the first approximate value of
V using the ideal gas law. Then with a rearranged van der Waals equation
we generate successive approximations. The results converge quickly.
2. The hint suggests we use a small initial value for cf. Using a starting
value of cf 0.001(1/sqrt(cf) 31.62278), the values for the two sides
of the equation quickly converge on 11.39263. Hence cf 0.007705.
3. There are 11 members in the structure so 11 equations are needed.
For nodes 2 through 6 we write two equations: one for the horizontal
component of the forces and another for the vertical. We assume each
member to be in tension. For node 7 we need only the horizontal equation.
The coefficients of the resulting system of equations are shown below.
Use matrix math to solve. It is convenient to use named cells for Sin(30),
Cos(30), Sin(60), and Cos(60). Only two cells are really needed.
The value for f2 is 28.87 in compression. See the worksheet Truss in
AnswersChap11.xlsx on the companion website for more details.
CHAPTER 12
5. The figure below shows a worksheet set up for this problem. Solver is
used with (i) no Set Objective, (ii) the By changing cell is set to T (cell
B8), and (iii) the constraint is that B9 B10. An alternative formula for
B9 is SUMPRODUCT(10^(D4:D6),F4:F6). The result is 366 K.
6. The figure below shows a worksheet set up for this problem. Since this is
an optimization problem, each simulation must be solved separately. For
the first case, Solver is used with (i) Obective cell B8 to be maximized,
(ii) the By changing cell is set to B7, and (iii) no constraint. Cell B10 tests
the conjecture, and gives a value which is satisfactorily close to zero.
CHAPTER 13
4. The answer is 4.27. This may also be found by simple integration. See
the workbook AnswersChap13.xlsx on the companion website for a
sample worksheet.
5. Using a UDF the author produced these values.
h
n
Approx
Error
% Error
0.5
2
0.6365142
0.0002198
0.0345%
0.25
4
0.6363098
0.0000155
0.0024%
0.125
8
0.6362954
0.0000010
0.0002%
0.001
1000
0.6362944
0.0000000
0.0000%
0.0001
10,000
0.6362944
0.0000000
0.0000%
CHAPTER 14
2. The figure below should aid the reader in developing a worksheet.
Column
Row
5
6
7
x
0
B6+h
y
1
C6+D6
h*f(x,y)
h*(-2*B6*C6)
h*(-2*B7*C7)
error
C6-E6
C7-E7
40
B39
+h
2.00
C39
+D39
0.01521
h*(2*B40*C40)
0.00304
exact
1
EXP((B7^2))
EXP((B40^2))
0.01832
C40E40
0.00310
8. With h 15 s, the level after 10 min was computed as 6.63 and the time
to empty as 25 min. A suitable UDF would be:
Function cone(t, x)
g 32
r 0.1
cone -0.6 * r ^2 * Sqr(2 * g) / x ^(1.5)
End Function
CHAPTER 16
2. This is the data from which Lord Rayleigh inferred the existence of
a new gas in air, later called argon. The A series are measurements
of nitrogen taken from the air while B are from chemically produced
nitrogen. Do they differ significantly? If we use the method of
Exercise 7 (see figure below) we, like Rayleigh, come to the
conclusion that they do.
3. One type A and one type B tire were placed on each car so a paired test is
appropriate. The figure below shows the results.
5. From the figure below we see that about 97% are expected to have a
lifetime of 750 h or less. Maybe the manufacture should rethink the
warranty! Perhaps he meant 450? Had he Googled Normal Distribution
Calculator he would have known better!