/src/main/java/net/finmath/montecarlo/automaticdifferentiation/forward/RandomVariableDifferentiableAD.java
final double epsilon = 0.2*X.getStandardDeviation( ) ;final double max = X.getMax( ) ;
final double max = X.getMax ( ) ;
public double applyAsDouble(final double x) { return (x == min) ? 1.0 : 0.0; } }); break; case MAX: <extra_id_0> derivative = X.apply(new DoubleUnaryOperator() { @Override public double applyAsDouble(final double x) { return (x == max) ? 1.0 : 0.0; } });