Language
C
Compiler
gcc 8.3.0
Options
Warnings
Optimization
C11
-pedantic
Raw compiler options
-lm
$ gcc prog.c -Wall -Wextra -O2 -march=native -std=c11 -pedantic -lm
intervals OP's simplified
---------------------------------------
10 0.7761295816 0.7761295816
100 0.7851042579 0.7851042579
1000 0.7853888667 0.7853888667
10000 0.7853978694 0.7853978694
---------------------------------------
Expected: 0.7853981634
Exit Code:
0