/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableDifferentiableAADPathwise.java
} resultrandomvariable = X.choose( new RandomVariableFromDoubleArray( 0.0) , new RandomVariableFromDoubleArray( 1.0) ) ;
resultrandomvariable = X.choose ( new RandomVariableFromDoubleArray ( 0.0 ) , new RandomVariableFromDoubleArray ( 1.0 ) ) ; }
return (x == 0.0) ? Double.POSITIVE_INFINITY : 0.0; } }); } else if(differentialIndex == 1) { resultrandomvariable = X.choose(new RandomVariableFromDoubleArray(1.0), new RandomVariableFromDoubleArray(0.0)); } else { <extra_id_0> default: break; } return resultrandomvariable; } }