Accelerate calc_error by avoiding declaring p and q