/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
} return new RandomVariableFromDoubleArray( time, newValueIfNonStochastic) ;
return new RandomVariableFromDoubleArray ( time, newValueIfNonStochastic ) ; }
} } @Override public RandomVariable sqrt() { if(isDeterministic()) { final double newValueIfNonStochastic = Math.sqrt(valueIfNonStochastic); <extra_id_0> else { final double[] newRealizations = new double[realizations.length]; for(int i=0; i<newRealizations.length; i++) { newRealizations[i] = Math.sqrt(realizations[i]); } return new RandomVariableFromDoubleArray(time, newRealizations);