Thanks for your extra eyes! I haven't gotten to trig yet and didn't notice the problems. I've corrected the handout and have posted the revised code and PDF. Extremely buy nowadays but if you can think of some resources that would be helpful, let me know.