Lab3:

 

Evaluate “pi”

 

Pi = integral (4/(1+ x2))   (the limits being 0 to 1)

 

Approximate numerically by calculating the sum of the areas under the curve. Approximate the area as a rectangle.

 

Input a variable to determine the number of rectangles used in the approximation.

 

Give two programs with Loop Splitting and Self Scheduling