Commit 7974de54 authored by hasan  khaddour's avatar hasan khaddour
parents 03cba36f 44ff89f1
......@@ -32,7 +32,7 @@ double calculateIntegral(int numRectangles, int start, int end) {
}
// anpother appraoch to calc the itegral using openmp
// by using an atomic operation for the (+=)
double calculateIntegralTrapezoidal(int numRectangles, int start, int end) {
double calculateIntegralSecondApproach(int numRectangles, int start, int end) {
double width = (end - start) / (numRectangles * 1.0);
double totalArea = 0.0;
......
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment