Is there a function or method of programming which can be used to interpolate or extrapolate values from a table?