Unverified Commit 44ff89f1 authored by hasan  khaddour's avatar hasan khaddour Committed by GitHub

Update integral.c

parent d9b9a909
...@@ -32,7 +32,7 @@ double calculateIntegral(int numRectangles, int start, int end) { ...@@ -32,7 +32,7 @@ double calculateIntegral(int numRectangles, int start, int end) {
} }
// anpother appraoch to calc the itegral using openmp // anpother appraoch to calc the itegral using openmp
// by using an atomic operation for the (+=) // 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 width = (end - start) / (numRectangles * 1.0);
double totalArea = 0.0; double totalArea = 0.0;
......
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