Problem ?


1. Given a well-behaved smooth function, integrate it over the given limits of integration ?


2. Approximating solution to integral a smooth function.


3. Integration Limits are from 0 to 30, b > a and b-a >= 1.


Initialize
Initialize variables
Step Execution
main(){
   int a, b, width, i;
   double sum;
   scanf("%d%d", &a, &b );
   sum = 0; width = 1; i = 0;
   for ( i = a; b >= i; i += width){
     sum = sum + cos(2*Pi/13*i) * width;
   }
   printf("Integration value = %d", sum);
}
Graph Visualization
LOCAL VARIABLES :    
OUTPUT :