Hello, I have been searching and can't seem to find anything on the topic of integrating modular arithmetic functions. So far I have created an equation for a function in the form of f(x)=mod(x,a):
\int mod (x,a) dx=\frac{a(x-mod (x,a))+mod (x,a)^2}{2}+c
But, now I am investigating how to...