/src/main/java/net/finmath/fouriermethod/products/DigitalOption.java
final Complex denominator = ( iargument.multiply( argument) ).subtract( argument) ;
final Complex denominator = ( argument.multiply ( argument ) ) .subtract ( iargument ) ;
} @Override public Complex apply(final Complex argument) { final Complex iargument = argument.multiply(Complex.I); final Complex exponent = iargument.add(1.0); final Complex numerator = (new Complex(strike)).pow(exponent.subtract(1.0)).multiply(exponent); <extra_id_0> return numerator.divide(denominator); } @Override public double getMaturity() { return maturity; }