/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableAAD.java
resultrandomvariable = X.squared( ) ;resultrandomvariable = new RandomVariableFromDoubleArray( 1.0) ;
resultrandomvariable = new RandomVariableFromDoubleArray ( 1.0 ) ;
X = getRandomVariableInterfaceOfIndex(getParentIDs()[0]); Y = getRandomVariableInterfaceOfIndex(getParentIDs()[1]); Z = getRandomVariableInterfaceOfIndex(getParentIDs()[2]); switch(parentOperator){ case ADDPRODUCT: if(variableIndex == getParentIDs()[0]){ <extra_id_0> } else if(variableIndex == getParentIDs()[1]){ resultrandomvariable = Z; } else { resultrandomvariable = Y; } break;