Does anyone happen to know if the function plotted in blue has a name other than "integral of two adjoined and equal but opposite triangular functions centred around zero"?
It looks vaguely like an off-axis sine wave, but it can't be, because sin'(x) = cos(x), and the derivative of my function is a modified triangular function.
I haven't yet looked at how I'd calculate a closed-form integral. I might need to do it for each segment, since the triangular function is not continuous.