// // MIF.c is a program taking in three floats from standard in, // and returns a table with values of sine computed for x from xMin to // xMax in steps of size dx. The values are computed using the 5th degree // Taylor Polynomial in the Horner form and the sine function in the math.h // library. // #include #include float horner(float); int main(void) { float xMin, xMax, dx, x, s, f; int i; scanf("%f %f %f",&xMin, &xMax, &dx); // Checks if xMin is less than xMax, and exits if not. if(xMin>xMax) return 1; printf("xMin = %f\txMax = %f\t\tdx = %f\n",xMin, xMax, dx); printf("n\t\tx\t\t\tCsin\t\t\tMsin\t\t\tRelative Error\n"); for(i=1,x=xMin;x