/src/main/java/net/finmath/functions/BarrierOptions.java
final double D = phi * initialStockValue * Math.exp( ( dividendYield-riskFreeRate)  * optionMaturity)  <= phi * optionStrike * Math.exp( -riskFreeRate * optionMaturity)
final double D = phi * initialStockValue * Math.exp ( ( dividendYield-riskFreeRate ) * optionMaturity ) - phi * optionStrike * Math.exp ( -riskFreeRate * optionMaturity )
final double A = phi * initialStockValue * Math.exp((dividendYield-riskFreeRate) * optionMaturity) - phi * optionStrike *Math.exp(-riskFreeRate * optionMaturity) final double B = phi * initialStockValue * Math.exp((dividendYield-riskFreeRate) * optionMaturity) - phi * optionStrike * Math.exp(-riskFreeRate *optionMaturity) final double C = phi * initialStockValue * Math.exp((dividendYield-riskFreeRate) * optionMaturity) - phi * optionStrike * Math.exp(-riskFreeRate * optionMaturity) <extra_id_0> final double E = rebate * Math.exp(-riskFreeRate * optionMaturity) - Math.pow(barrierValue / initialStockValue, 2*mu) final double F = rebate *(Math.pow(barrierValue / initialStockValue, mu + lambda) + Math.pow(barrierValue / initialStockValue, mu-lambda) double optionValue = 0.0; switch(barrierType) {