33 #include <casu_tfits.h>
34 #include <casu_utils.h>
35 #include <casu_mods.h>
36 #include "../imcore.h"
37 #include "../imcore_radii.h"
42 float x[] = {1.0,3.0,5.0,-10.0};
43 float y[] = {-0.5,-27.5,-86.5,-424.0};
44 float coefs[3] = {1.0,2.5,-4.0};
49 cpl_test_init(PACKAGE_BUGREPORT,CPL_MSG_WARNING);
53 imcore_polynm(y,x,4,poly,3,0);
54 cpl_test_rel(poly[0],coefs[0],0.01);
55 cpl_test_rel(poly[1],coefs[1],0.01);
56 cpl_test_rel(poly[2],coefs[2],0.01);
60 return(cpl_test_end(0));