/*This program prints the values of the function */ /* f(x) = cos(x) + sin(x)*exp(-x*x/2) */ /* at n points on an interval given by the user.*/ #include #include int main(void){ int i, n; float x, xi, xf, dx, y; printf("Numerical Programming Ex.1.3\n"); printf("Give start and end points "); printf("and the number of points.\n"); scanf("%f %f %d",&xi,&xf,&n); dx = (xf-xi)/(n-1); for(i=0;i