PVM Simpson's Rule Integration Example

This directory contains the following files: The code does the following: sr_master.c divides up the interval and sends out the interval number to sr_slave, which calculates that interval's contribution to the total area and returns it to sr_master. For this particular example, we are integrating the function

f(x) = cos(50x)*exp(-3x) + 1 on the interval [0,1] .

To run this example, copy the above files into your $HOME/pvm3 subdirectory. Then type

aimk sr_master sr_slave

Once compiled & linked successfully, the code is ready to run using pvm or xpvm.

http://math.arizona.edu/~swig/documentation/pvm/simpson_int/index.php
Last modified: Fri, 14 Dec 2007 15:50:52 -0700
E-mail: swig@math.arizona.edu
Valid XHTML 1.0! Valid CSS!