#include #include /* Please make two changes to this code: (1) evaluate the function f(x) = x*exp(-x) (2) use a spacing of 0.1 instead of a spacing of 1.0 (3) Then compile, run, pipe the result to a file, and plot it. */ int main(void) { float x, y; int i; fprintf(stdout,"# Hello class, I shall now evaluate f(x) = x.\n"); fprintf(stdout,"# i \t x \ty\n"); for(i = 0; i < 10; i++) { x = 1.0 * i; y = x; fprintf(stdout,"%d\t%g\t%g\n",i,x,y); } return 0; }