Midterm Exam:
Beta function B(a, b) is described by the following integral:
B(a, b) = int 0 to 1  dx { x(a-1)/(1-x)(b-1) }
where a>0 and b>0.
  1. Write a C code for computing this integral using MPI. The parameters a and b are regarded as an input in this program.
  2. This program should contain a section to check the value of a and b. If a or b is less than or equal to zero, then print an error message then stop the program.
  3. Can you extend this program such that it creates a Table of Beta function values

  4.  for (a, b)=(1, 1), (2, 2), ... , (100, 100)?