Question: C programming assigmenty 1. Implement a revised version of Program 3.2: Trapezoidal rule of calculating the definite integral Ja f(x)dx such that the users can

C programming assigmentyC programming assigmenty 1. Implement a revised version of Program 3.2: Trapezoidal

1. Implement a revised version of Program 3.2: Trapezoidal rule of calculating the definite integral Ja f(x)dx such that the users can have their input, note that f (x) is a function hardcoded in your program INPUT: b - the upper bound of the interval; a - the lower bound of the interval; n - the number of subintervals (trapezoids) OUTPUT: The value of Jaf (x)dx. 2. Use MPIReduce to rewrite the collective communication part of Problem 1 3. Use MPI to implement the histogram program discussed in Chapter 2. Have process 0 read in the input data and distribute it among the processes. Also have process 0 printout the histogram. Note that the measurements are randomly generated based on data count, a, and b input by the user. INPUT: data count - the number of measurements; b - the upper bound of measurements, a - the lower bound of measurements; n- the number of bins. OUTPUT: The measurements; The range of each bin; The number of measurements in each bin. 1. Implement a revised version of Program 3.2: Trapezoidal rule of calculating the definite integral Ja f(x)dx such that the users can have their input, note that f (x) is a function hardcoded in your program INPUT: b - the upper bound of the interval; a - the lower bound of the interval; n - the number of subintervals (trapezoids) OUTPUT: The value of Jaf (x)dx. 2. Use MPIReduce to rewrite the collective communication part of Problem 1 3. Use MPI to implement the histogram program discussed in Chapter 2. Have process 0 read in the input data and distribute it among the processes. Also have process 0 printout the histogram. Note that the measurements are randomly generated based on data count, a, and b input by the user. INPUT: data count - the number of measurements; b - the upper bound of measurements, a - the lower bound of measurements; n- the number of bins. OUTPUT: The measurements; The range of each bin; The number of measurements in each bin

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!