fjames86 / fpoly

Manipulate dense multivariate polynomials
0 stars 0 forks source link

easy to break lagrange-interpolate #3

Closed fjames86 closed 11 years ago

fjames86 commented 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.

fjames86 commented 11 years ago

condition added to give useful error message