/* Jonathan Hauenstein - University of Notre Dame Center for Applied Mathematics Minicourse on Parallel Computing April 24, May 1, May 8, 2008 Sample programs are designed for educational use */ #include typedef struct { int n; double a; double b; } trapInfo; double composite_trapApprox(trapInfo *info); void setup_my_info(trapInfo *my_info, double a, double b, int totalTrap, int my_id, int num_proc);