Printf bottom of page 63


There is a minor error in the printf statement at the bottom of page 63

As written:

printf("(%.2f, %.2f) becomes (%.2f radians, %.2f)\n", x, y, radius, angle);

It should be

printf("(%.2f, %.2f) becomes (%.2f, %.2f radians)\n", x, y, radius, angle);

It is the angle that is in radians, not the angle.


Good catch!

I’m sorry about that – I rewrote that code sample a few times, I guess a few copy-and-paste errors lingered.