fixed calculator.integral