Here\'s a simple code for linear curve fitting.
def cf(x,y): if(len(x)==len(y)and len(x)>3): s_x=0 s_y=0 s_xsq=0 s_