Skip to content

Commit 7dff33c

Browse files
authored
Merge pull request #2587 from bopeng1234/2025Hack_github_2136
update formula in readme fix #2136
2 parents e7738ee + b52bf0b commit 7dff33c

File tree

1 file changed

+1
-1
lines changed
  • DirectProgramming/C++/ParallelPatterns/openmp_reduction

1 file changed

+1
-1
lines changed

DirectProgramming/C++/ParallelPatterns/openmp_reduction/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This example demonstrates how to perform reduction by using the CPU in serial mo
2323

2424
This code shows how to use OpenMP on the CPU host as well as using target offload capabilities.
2525

26-
The different modes use a simple calculation using the well known mathematical formula that states if one integrates from 0 to 1 over the function, $(4.0/(1+x*x))dx$, the answer is pi. One can approximate this integral by summing up the area of a large number of rectangles over this same range.
26+
The different modes use a simple calculation using the well known mathematical formula, $\int_{0}^{1} \frac{4}{1 + x^2}\\mathrm{d}x$, the answer is pi. One can approximate this integral by summing up the area of a large number of rectangles over this same range.
2727

2828
Each of the different functions calculates pi by breaking the range into many tiny rectangles and then summing up the results.
2929

0 commit comments

Comments
 (0)