01-Dec-2018 19:21:38 BLACK_SCHOLES_TEST MATLAB version Test the BLACK_SCHOLES library. ASSET_PATH_TEST: Demonstrate the simulation of an asset price path. The asset price at time 0, S0 = 2.000000 The asset expected growth rate MU = 0.100000 The asset volatility SIGMA = 0.300000 The expiry date T1 = 1.000000 The number of time steps N = 100 Partial results: 1 2.000000 2 1.958160 3 1.960335 4 2.013342 5 1.921308 6 1.995466 7 1.996986 8 2.056636 ...... .............. 101 3.222585 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.000000 The exercise price E = 1.000000 The interest rate R = 0.050000 The asset volatility SIGMA = 0.250000 The expiry date T1 = 3.000000 The number of intervals M = 256 The option value is 1.144756 BSF_TEST: A demonstration of the Black-Scholes formula for option valuation. The asset price at time T0, S0 = 2.000000 The time T0 = 0.000000 The exercise price E = 1.000000 The interest rate R = 0.050000 The asset volatility SIGMA = 0.250000 The expiry date T1 = 3.000000 The option value C = 1.144742 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.000000 0.001394 2.000000 0.037337 3.000000 0.223638 4.000000 0.627210 5.000000 1.209924 6.000000 1.914388 7.000000 2.695426 8.000000 3.522607 9.000000 4.376385 10.000000 5.244276 MC_TEST: A demonstration of the Monte Carlo method for option valuation. The asset price at time 0, S0 = 2.000000 The exercise price E = 1.000000 The interest rate R = 0.050000 The asset volatility SIGMA = 0.250000 The expiry date T1 = 3.000000 The number of simulations M = 1000000 The confidence interval is [ 1.142334, 1.145866 ] BLACK_SCHOLES_TEST Normal end of execution. 01-Dec-2018 19:21:49