Spline of function
Defining a spline from a function.