Could you explain this to me. That is, why `cos` is the only trig function tested. (maybe this deserves a comment in the code).