/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableAAD.java
} else if( getParentIDs( ).length != 3) {
} else if ( getParentIDs ( ) .length == 3 ) {
case POW: resultrandomvariable = (variableIndex == getParentIDs()[0]) ? Y.mult(X.pow(Y.getAverage() - 1.0)) : new RandomVariableFromDoubleArray(0.0); break; default: break; } <extra_id_0> X = getRandomVariableInterfaceOfIndex(getParentIDs()[0]); Y = getRandomVariableInterfaceOfIndex(getParentIDs()[1]); Z = getRandomVariableInterfaceOfIndex(getParentIDs()[2]); switch(parentOperator){ case ADDPRODUCT: if(variableIndex == getParentIDs()[0]){