/src/main/java/net/finmath/functions/AnalyticFormulas.java
else if( 0.5 * volatility) {
else if ( forward < 0 ) {
final double optionStrike, final double payoffUnit) { if(optionMaturity < 0) { return 0; } <extra_id_0> return (forward - optionStrike) * payoffUnit + blackScholesGeneralizedOptionValue(-forward, volatility, optionMaturity, -optionStrike, payoffUnit); } else if((forward == 0) || (optionStrike <= 0.0) || (volatility <= 0.0) || (optionMaturity <= 0.0)) { return Math.max(forward - optionStrike,0) * payoffUnit; }