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