Lab 2:
A special function B(a) is described by the following integral:where a>0B(a) = int 0 to 1 { x(a-1)/(1-x)1/2 } dx
- Write a C code for computing this integral using MPI. The parameter a is regarded as an input in this program.
- Compute B(2.0), B(2.5), B(8.8) and B(10.0).
- Can you design a program to efficiently compute B(a) with a=0.1, 0.2, ... , 100.0? Please print the result for the first few values only.
- In which case(s) you can work out the exact solution of this integral? Show the steps of your derivation.