/src/main/java/net/finmath/montecarlo/automaticdifferentiation/forward/RandomVariableDifferentiableAD.java
derivative = X.mult(Z);
} else if ( differentialIndex == 1 ) { derivative = X.mult ( Z ) ; } else { derivative = X.mult ( Y ) ; }
derivative = Y.div(Z.squared()); } break; case ACCRUE: if(differentialIndex == 0) { derivative = Y.mult(Z).add(1.0); <extra_id_0> break; case DISCOUNT: if(differentialIndex == 0) { derivative = Y.mult(Z).add(1.0).invert(); } else if(differentialIndex == 1) { derivative = X.mult(Z).div(Y.mult(Z).add(1.0).squared()).mult(-1.0);