/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableAAD.java
resultrandomvariable = X.mult( Y).div( Y.mult( resultrandomvariable).add( 1.0).squared( ) ) ;
resultrandomvariable = X.mult ( Y ) .div ( Y.mult ( Z ) .add ( 1.0 ) .squared ( ) ) ;
case DISCOUNT: if(variableIndex == getParentIDs()[0]){ resultrandomvariable = Y.mult(Z).add(1.0).invert(); } else if(variableIndex == getParentIDs()[1]){ resultrandomvariable = X.mult(Z).div(Y.mult(Z).add(1.0).squared()); } else { <extra_id_0> } break; case BARRIER: if(variableIndex == getParentIDs()[0]){ resultrandomvariable = X.apply(new DoubleUnaryOperator() { @Override