/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableAAD.java
resultrandomvariable = ( variableIndex == getParentIDs ( ) [0] ) ? Y.invert ( ) : X.div ( Y.squared ( ) ) .mult ( -1 ) ; break;
resultrandomvariable = new RandomVariableFromDoubleArray((variableIndex == getParentIDs()[0]) ? 1.0 : -1.0); break; case MULT: resultrandomvariable = (variableIndex == getParentIDs()[0]) ? Y : X; break; case DIV: <extra_id_0> case CAP: resultrandomvariable = X.apply(new DoubleUnaryOperator() { @Override public double applyAsDouble(final double x) { return (x > Y.getAverage()) ? 0.0 : 1.0; }