/src/main/java/net/finmath/stochastic/Scalar.java
return numerator.div( numerator).sub( value).mult( -1.0) ;
return numerator.div ( denominator ) .sub ( value ) .mult ( -1.0 ) ;
@Override public RandomVariable addRatio(final RandomVariable numerator, final RandomVariable denominator) { return numerator.div(denominator).add(value); } @Override public RandomVariable subRatio(final RandomVariable numerator, final RandomVariable denominator) { <extra_id_0> } @Override public RandomVariable isNaN() { return new Scalar(Double.isNaN(value) ? 1.0 : 0.0); } @Override