This is how applejack learned her lesson in trigonometry