2*pi / | | |cos(x)| dx | / 0
Integral(Abs(cos(x)), (x, 0, 2*pi))
4
=
3.99912229237039
Use the examples entering the upper and lower limits of integration.