Cell 1 — Shared utilities: BS analytic, Thomas algorithm, PSOR solver
Foundation cell: Black-Scholes put/call for benchmarking, the Thomas algorithm from Module 2, and the PSOR solver for American puts. The PSOR solver accepts a relaxation parameter
omega and a convergence tolerance tol, and returns the price, the final grid, the node array, and the total iteration count across all time steps.
Run cell to see output.