"Integral and processor parallelization".
the objective is to compute the approximation of an integral with or without parallelization to compare for each method. The function to integrate is
-
$A,B$ the bounds of the integration interval -
$N$ the number of subintervals of the subdivision -
$M$ number of cpu cores -
$[A_j,B_j]$ subintervals of$[A,B]$ -
$x_i$ points -
$d_{w_i}$ pounds
subject to :
$N \geq M > 0$ $-\sqrt{\frac{\pi}{2}} \leq A < B \leq \sqrt{\frac{\pi}{2}}$
For the approximation of the integral, we use Gaussian quadrature with the three-point Gaussian-lengender formula:
The approximation calculation of
change program.py.
if __name__ == '__main__'the use of program progmanopt requires :
if the packages are not installed. you can install them the command :
pip install -r requirements.txt
if the command did not work, you can install the packages one by one with the command
pip install [package]
- Loik johan ACAKPO-ADDRA alias @loik77360