/src/main/java/net/finmath/stochastic/Scalar.java
if ( ( value) == 0) {   return rate.mult( 0.0) ; }else {   return rate.mult( ( periodLength / ( value) ) ).add( ( 1.0 / ( value) ) ).invert( ) ; }
[Delete]
@Override public RandomVariable discount(final RandomVariable rate, final double periodLength) { if(value == 0) { return rate.mult(0.0); } else { <extra_id_0> } } @Override public RandomVariable choose(final RandomVariable valueIfTriggerNonNegative, final RandomVariable valueIfTriggerNegative) { if(value >= 0) { return valueIfTriggerNonNegative;