Supercomputing Applications
Lab 10 Report Form - MPI Programming #6
Parallel Programming Application 2
Numerical Integration Using the Trapezoidal Rule

  1. Your name: __________________________________, Period: _____, Date __________

  2. What functions are you testing your program with (choose 3) and under what x1 and x2 bounds?
    
    
    
    
    
    
    

  3. Run your program with increasing numbers of processors and with several values of n, the number of trapezoids. Time the results using time mpirun ... . Print your results:
    
      For n = ?
           # of processers    Time
             1                 ?
    	 2 		   ?
    `        4 		   ?
             8		   ?
    	 16		   ?
    
    
  4. Graph the results with Gnuplot for several different values of n. Do you see any tendencies or patterns?
    
    
    
    
  5. Integrate each of your functions with calculus theory and print or paste in a comparison of your trapezoidal rule results with the theoretical results.
    
    
    
    
    
    
    
    
    
  6. Paste in or attach your code