Some notes:
- Those are all the printf format specifiers I have (aside from %%, but you could probably tell that).
- I don't know why cos and fabs are failing, but it's probably floating point precision errors. Unfortunately, until I get %g done, I won't know.
- That random number never changes. Until I get various time stuff setup, I can't change the seed for the generator, so the seed is always the same.