I am given the Black Scholes equation as $$\frac{\partial c(t, s)}{\partial t}+\frac{1}{2} s^2 \sigma^2 \frac{\partial ^2c(t, s)} {\partial s^2} + r s\frac{\partial c(t, s)}{\partial s} − rc(t, s) = 0 $$ with terminal and boundary conditions $$c(T,s) = max(s-k,0)$$ $$c(t,0)=0$$ where t $\in$ [0,T]. I have to use finite differencing and runge-kutta to solve this equation and then plot $c(t,s)$ for s $\in$ [10,100] for $k=100, \sigma = 0.2, T=1, r=0.05$ for different t. I also have to evaluate for $t=0$ and $s=100$ but I'm not sure how you go about doing this. Do you have any suggestions on how I could go about doing this please?
Any suggestions would be highly appreciated.
NDSolve. – bbgodfrey Jan 25 '22 at 01:26