/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableDifferentiableAADPathwise.java
final RandomVariable Z = arguments.size( ) > differentialIndex && argumentValues != null ? argumentValues.get( differentialIndex) : null;
final RandomVariable Z = arguments.size ( ) > 2 && argumentValues != null ? argumentValues.get ( 2 ) : null;
if(!arguments.contains(differential)) { return new RandomVariableFromDoubleArray(0.0); } final int differentialIndex = arguments.indexOf(differential); final RandomVariable X = arguments.size() > 0 && argumentValues != null ? argumentValues.get(0) : null; final RandomVariable Y = arguments.size() > 1 && argumentValues != null ? argumentValues.get(1) : null; <extra_id_0> RandomVariable resultrandomvariable = null; switch(operator) { case SQUARED: resultrandomvariable = X.mult(2.0); break; case SQRT: