11 June 2018 01:40:58 PM BLACK_SCHOLES_TEST C version Test the BLACK_SCHOLES library. ASSET_PATH_TEST: Demonstrate the simulated of an asset price path. The asset price at time 0 S0 = 2 The asset expected growth rate MU = 0.1 The asset volatility SIGMA = 0.3 The expiry date T1 = 1 The number of time steps N = 100 The random number seed was SEED = 123456789 Partial results: 0: 2.000000 1: 2.103533 2: 2.074117 3: 2.039396 4: 2.025507 5: 2.100778 6: 2.134984 7: 2.218076 ...... .............. 100: 2.440829 Full results written to "asset_path.txt". BINOMIAL_TEST: A demonstration of the binomial method for option valuation. The asset price at time 0 S0 = 2 The exercise price E = 1 The interest rate R = 0.05 The asset volatility SIGMA = 0.25 The expiry date T1 = 3 The number of intervals M = 256 The option value is 1.14476 BSF_TEST: A demonstration of the Black-Scholes formula for option valuation. The asset price at time T0 S0 = 2 The time T0 = 0 The exercise price E = 1 The interest rate R = 0.05 The asset volatility SIGMA = 0.25 The expiry date T1 = 3 The option value C = 1.14474 FORWARD_TEST: A demonstration of the forward difference method for option valuation. The exercise price E = 4 The interest rate R = 0.03 The asset volatility SIGMA = 0.5 The expiry date T1 = 1 The number of space steps NX = 11 The number of time steps NT = 29 The value of SMAX = 10 Initial Option Value Value 1 0.00139363 2 0.0373367 3 0.223638 4 0.62721 5 1.20992 6 1.91439 7 2.69543 8 3.52261 9 4.37638 10 5.24428 MC_TEST: A demonstration of the Monte Carlo method for option valuation. The asset price at time 0, S0 = 2 The exercise price E = 1 The interest rate R = 0.05 The asset volatility SIGMA = 0.25 The expiry date T1 = 3 The number of simulations M = 1000000 The random number seed was SEED = 123456789 The confidence interval is [1.14311,1.14663]. BLACK_SCHOLES_TEST Normal end of execution. 11 June 2018 01:40:58 PM