Errata, Chapter 2


p. 194

Printed: Φ(z) = φ(z) (z + z^3/3 + z^5 / 3*5 + z^5 / 3*5*7
Fixed: Φ(z) = 1/2 + φ(z) (z + z^3/3 + z^5 / 3*5 + z^7 / 3*5*7
Reported by Michelle Lu and Charles Karney, 03-Oct-07.

p. 198

Printed: we could change getCoupon()
Fixed: we could change uniform()
Reported by Michelle Lu, 05-Oct-07.

p. 211, Exercise 2.1.16

Printed: cos(d2) cos(d)
Fixed: cos(d2) cos(d1)
Reported by Charles Karney, 23-Oct-07.

p. 226

Printed: See Exercise 2.1.17
Fixed: See Exercise 2.1.28
Reported by Charles Karney, 18-Oct-07.

p. 260

Printed: is the same as the gcd of p and p % q
Fixed: is the same as the gcd of q and p % q
Reported by Susanne Sherba, 16-Jan-07.

p. 260, figure

Printed:
Fixed: gcd(192, 24) missing from figure
Reported by Fatu Conteh, 11-Oct-07.

p. 263, figure

Printed: Seventh line: moves(1,true)
Fixed: moves(1,false)
Reported by Katherine Song, 13-Mar-08.

p. 273

Printed: not smaller the original
Fixed: not smaller than the original
Reported by Jayne Choi and Peter Toshev, 12-Oct-07.

p. 277

Printed: Are there situations when iteration
Fixed: Are there situations when recursion
Reported by Eric Finkelstein and Morgan Fowler, 06-Oct-07.

p. 278

Printed: public static int ex233(int n)
Fixed: public static void ex233(int n)
Reported by Susanne Sherba, 23-Jan-08.