from math import exp def cn_test(a,T,r0,n): """ Comparing explicit, implicit and Crank-Nicolson schemes, using n time intervals, for r'(t)=a r(t) for 0