Skip to content

Commit b4e5c3b

Browse files
committed
Fix misuse of 'phase' wrt to wave functions in Chapter 16
Closes marijnh#547
1 parent f6cb045 commit b4e5c3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

16_game.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ the sine function useful for modeling a wavy motion.
417417
{{index pi}}
418418

419419
To avoid a situation where all coins move up and down synchronously,
420-
the starting phase of each coin is randomized. The _((phase))_ of
420+
the starting phase of each coin is randomized. The period of
421421
`Math.sin`'s wave, the width of a wave it produces, is 2π. We multiply
422422
the value returned by `Math.random` by that number to give the coin a
423423
random starting position on the wave.

html/errata.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ <h2>Chapter 15</h2>
9393

9494
<h2>Chapter 16</h2>
9595

96+
<p><strong>Page 271</strong> <em>Actors</em>: Near the bottom of the
97+
page, the book incorrectly uses the term <em>phase</em> (of a sinus
98+
wave) where it should say <em>period</em>.</p>
99+
96100
<p><strong>Page 278</strong> <em>Motion and Collision</em>: The code
97101
that defines the <code>touches</code> method unintentionally (though
98102
harmlessly) used <code>var</code> instead of <code>let</code> to

0 commit comments

Comments
 (0)