error in approx deriv