from scitools.std import * def cn_system(F0,S0,T,dt): """Numerical solution with Crank-Nicolson's method of F'(t)=1-S(t), F(0)=F0, S'(t)=F(t)-1, S(0)=S0, for 0