write first draft of code to compute error term assuming explicit formula