- sumx**2/N) b = sumy/N - m*sumx/N return m,b m,b = slr(samples) c.stroke(path.line(0,b,N,N*m+b),[color.rgb.blue]) c.writePDFfile("ThielSen") English...