Question: Write a matlab function to solve the Black-Scholes PDE for a European put option. Vt -1/2sigma^2S^2V ss -(r-q)SV s +rV= 0; V (S; 0) =

Write a matlab function to solve the Black-Scholes PDE for a European put option. Vt -1/2sigma^2S^2Vss-(r-q)SVs+rV= 0; V (S; 0) = max(K - S; 0); Vs(0; t) = -1; V (Sm; t) = 0: V=fdm cn european put(M, N, K, T, r, q, sigma). Use the Crank-Nicolson method. Use Sm = 3K in your program. The grid consists of N equal-distant sub-intervals in time and M equal-distant sub-intervals in space (stock price). V is the numerical solution at the N-th time step, representing todays option price. V is a column vector of length M + 1, including two end points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!