Adapted spline to only receive 3 instead of 4 arguments
Added separate function to compute DY shape