Numerical integration of a simple function

Question Q8.2.1

Use scipy.integrate.quad to evaluate the following integral: $$ \int_0^6 \left\lfloor x \right\rfloor - 2\left\lfloor\frac{x}{2}\right\rfloor\;\mathrm{d}x. $$


Solution