nature-of-code / The-Nature-of-Code-archive

The very first build system for The Nature of Code
http://natureofcode.com
914 stars 151 forks source link

Pendulum diagram 3.13 has sine and cosine reversed #308

Closed shiffman closed 8 years ago

shiffman commented 11 years ago

and the text should probably make note of this

shiffman commented 8 years ago

Added:

Note, however that sin(angle) is used for the x-value and cos(angle) for the y. This is the opposite of the formula we established in Chapter 3. The reason for this is that we are looking for the top angle of the right-triangle pointing down as depicted in Figure 3.13.