oneAPI-samples icon indicating copy to clipboard operation
oneAPI-samples copied to clipboard

math error in readme

Open ingconti opened this issue 2 years ago • 0 comments

Summary

in math you don't write in this way the formula to be integrated:

(4.0/(1+x*x)) dx

adding "dx" at the end does have a different meaning: all the product is the differential area below the curve You sum in your integral. (and pls remove redundant braces and decimal point to 4..) So should be:

... the function, 4/(1+x*x), the answer is pi.

URLs

https://github.com/oneapi-src/oneAPI-samples/tree/master/DirectProgramming/C%2B%2B/ParallelPatterns/openmp_reduction

Additional details

take a look to math book :)

ingconti avatar Jan 13 '24 17:01 ingconti