Take care not to divide by zero charge when calculating relative error.