Closed fjames86 closed 11 years ago
it is very easy to break lagrange-interpolate, e.g. by not providing sufficient (or too many) data points. it would be good to first check the arguments are valid before proceeding with the calculation and giving a nice error message if not.
condition added to give useful error message
it is very easy to break lagrange-interpolate, e.g. by not providing sufficient (or too many) data points. it would be good to first check the arguments are valid before proceeding with the calculation and giving a nice error message if not.