taylor series cosx at x=π/4 to order 2