Fix spline calculation for linear function. Square function test is red.