ECE1011 -
Computer-Based Modeling & Methods in Engineering
Errata –
Second edition, first printing of Engineering Problem Solving with C by Etter
and Ingber
Updated
10/28/02
Page
# |
Change |
45 |
Table 2.1: struct (not truct) |
46 |
Practice!: 3. –50,000
5. –0.0999 7. 1.03e-5
8. –1.05e5 9.
–3.552e6
10. 6.67e-4 11.
–9.02e-2 12.
–2.2e-2 |
47 |
Table 47, Floating Point: 38 (not 138), 308
(not 1308), 4932 (not 14932) |
61 |
Table 2.6, Floating-Point Values: add %lf,
%le, %lE, %lg, %lG to first line |
65 |
Second para: precedence (misspelling) |
79 |
cosh(x):
+ (not – in equation) |
115 |
Practice!:
Replace the two occurrences of && with || |
121 |
4. for (k=-2; k>=-10; k--)
6. j- - (not j) |
139 |
In program: max_time = time; not max_time =
itime; |
155 |
In
the formula for TF : Replace TR with TR |
156 |
Problem
38: Replace “problem 14” with “problem 37” |
246 |
The last array values should be 1
3
5
8
9
12 |
256 |
palindromes is mispelt in fscanf(plaindromes, “%[^\n]” |
259 |
Replace the } after for (i=0; i<=4; i++) with { |
262 |
Add ); at the end of
data_1 = fopen (“dist.dat”,”w” |
265 |
In the middle of the last paragraph change Section 4.2 to Section 5.2 |
287 |
At the top of the page for (i=o; i<=N-1; i++) |
287 |
At the top of the page the second printf should be printf(“Mesh Current %i: %f \n”, i + 1, soln[i]); |
287 |
Function
eliminate: Replace (row=indexX+1; row<=-1; r++) with (row=index+1;
row<=n-1; r++) |
287 |
Function
back_substitution should be back_substitute |
299 |
Problem
45: Replace soln[N+1] with soln[N] Problems
45, 46, 48: Add parameter int n to each of the prototype statements |
441 |
Section 2.3, page 60: 1. z = 8 (not 12)
3. y = 3 (not 4) Section 2.7, page 78: 1. velocity =
sqrt(v0*v0 + 2*a*(x – x0));
2. length = k*sqrt(1 – (v/c)*(v/c)); |
442 |
Section 2.7, page 80: 4. acothx = 1/(0.5*log((x
+1)/(x – 1))) Section 3.3, page 112: 4. if (den < 0.05) |