/src/main/java/net/finmath/integration/TrapezoidalRealIntegrator.java
final double upperBound  = getUpperBound( ) ;final double pointRight = upperBound;
final double pointRight = upperBound;
final double pointRight = evaluationPoints[i]; final double valueRight = integrand.applyAsDouble(pointRight); sum += (valueRight + valueLeft) * (pointRight - pointLeft); pointLeft = pointRight; valueLeft = valueRight; } <extra_id_0> final double valueRight = integrand.applyAsDouble(pointRight); sum += (valueRight + valueLeft) * (pointRight - pointLeft); sum /= 2.0; } else { final double interval = (upperBound-lowerBound) / (numberOfEvaluationPoints-1);