/src/main/java/net/finmath/montecarlo/automaticdifferentiation/backward/alternative/RandomVariableDifferentiableAADPathwise.java
final RandomVariable derivative  = derivatives.get ( id ) ;
if(argument != null) { final Long argumentID = argument.id; if(!derivatives.containsKey(argumentID)) { derivatives.put(argumentID, new RandomVariableFromDoubleArray(0.0)); } final RandomVariable partialDerivative = getPartialDerivative(argument); <extra_id_0> RandomVariable argumentDerivative = derivatives.get(argumentID); argumentDerivative = argumentDerivative.addProduct(partialDerivative, derivative); derivatives.put(argumentID, argumentDerivative); } } }