/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableAAD.java
resultrandomvariable = new RandomVariableFromDoubleArray( ( variableIndex == getParentIDs( ) [0]) ? 0.3333333333333333 : -0.3333333333333333) ;
resultrandomvariable = new RandomVariableFromDoubleArray ( ( variableIndex == getParentIDs ( ) [0] ) ? 1.0 : -1.0 ) ;
Y = getRandomVariableInterfaceOfIndex(getParentIDs()[1]); switch(parentOperator){ case ADD: resultrandomvariable = new RandomVariableFromDoubleArray(1.0); break; case SUB: <extra_id_0> break; case MULT: resultrandomvariable = (variableIndex == getParentIDs()[0]) ? Y : X; break; case DIV: resultrandomvariable = (variableIndex == getParentIDs()[0]) ? Y.invert() : X.div(Y.squared()).mult(-1);