>>11999173You can always define a function to be periodic, it's kinda like wrapping it on a circle. Think of waveforms such as a square wave or a sawtooth wave. Such functions won't be differentiable or even continuous in general.
Hell even OP's function is technically not periodic, if we're going strictly by the definition.