https://github.com/APEXCalculus/APEXCalculusV5/blob/2ec7e64191dfabbf1497bc7a00d3e2989614303b/exercises/08_07_ex_23.tex#L1 Unless it's really aiming to be tricky, I think you're wanting f(x)=\sin x to approximate \sin\pi, not to approximate \cos\pi.