functions for curves, multivariate interpolation and multidimensional lookup tables