It might actually be a good idea to put a math description in somewhere, maybe at the top of the file. I'll do that.