pi / | | sign(cos(x)) dx | / 0
Integral(sign(cos(x)), (x, 0, pi))
0
=
0.0385531421917553
Use the examples entering the upper and lower limits of integration.