// ================================================================ // John Kerl // kerl at math dot arizona dot edu // 2008-07-23 // ================================================================ #include // For the printf prototype #include // For the sscanf prototype #include // For the exit prototype #include // For the sin prototype #include "my_stuff.h" // For the my_function prototype int main(int argc, char ** argv) { int n = 12; int i; float c = 2.7; float x, y; for (i = 0; i < n; i++) { x = (float)i/n * 4.0; y = my_function(x, c); // Mystery function ... printf("%3d %11.7f %11.7f\n", i, x, y); } return 0; }