I just found out the problem I had been working on for the last hour and a half (it was a take home quiz so I couldn't skip it) was easily solved by just dividing by pi. I'm not sure I'll be able to sleep tonight because of the fuming.