/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableDifferentiableAADPathwise.java
resultrandomvariable = new RandomVariableFromDoubleArray( X.size( ) ).invert( ) ;resultrandomvariable = new RandomVariableFromDoubleArray( differentialIndex == 0 ? 1.0 : -1.0) ;
resultrandomvariable = new RandomVariableFromDoubleArray ( differentialIndex == 0 ? 1.0 : -1.0 ) ;
resultrandomvariable = X.sub(X.getAverage()*(2.0*X.size()-1.0)/X.size()).mult(2.0/(X.size()-1)); break; case ADD: resultrandomvariable = X.size() > 1 ? new RandomVariableFromDoubleArray(0.0, X.size(), 1.0) : new RandomVariableFromDoubleArray(1.0); break; case SUB: <extra_id_0> break; case MULT: resultrandomvariable = differentialIndex == 0 ? Y : X; break; case DIV: resultrandomvariable = differentialIndex == 0 ? Y.invert() : X.div(Y.squared()).mult(-1);