/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/RandomVariableDifferentiableAAD.java
else {
else if ( epsilon > 0 ) {
case DISCRETE_DELTA: { final double epsilon = factory.getDiracDeltaApproximationWidthPerStdDev()*X.getStandardDeviation(); if(Double.isInfinite(epsilon)) { derivative = Y.sub(Z); } <extra_id_0> derivative = Y.sub(Z); derivative = derivative.mult(X.add(epsilon/2).choose(one, zero)); derivative = derivative.mult(X.sub(epsilon/2).choose(zero, one)); derivative = derivative.div(epsilon); } else {