Joe Ng·FollowOct 31, 2021--ShareSorry, it should have been k*m+c, as c is returned by the polyfit function. I have corrected the gist, thanks!