European put option (source code)

= European put option

A European put with maturity $N$ and strike $K$ pays $(K-S_N)^+$ at time $N$ and can be exercised only at maturity.