Hi i been looking around the net for a Finite difference script/routine (For Matlab, c++, python) which specifically can depict the early exercise boundary for an American put with the following inputs:
S = 100
K = 100
r = 0.08
volatility = 0.2
dividend = 0.04
T = 3.0
dt = 0.03
I want the routine to yield a Boundary value for every dt from 0 up to T. ? Can someone suggest a working finite difference routine/script (For Matlab,c++,python) which is able to do that ?