I'm looking for an example of a 'wave-like' function $f : \mathbb{R} \longrightarrow \mathbb{R}$ with the following properties:
- deterministic
- smooth (continously differentiable)
- periodic but with varying period lengths $p_i$, $p_i \neq p_j$
- mean period length $p=\lim_{n \rightarrow \infty}\frac{1}{n}\sum_{i=-n}^n p_i$ is finite but not $0$ (periods don't get constantly larger or smaller)
I tried various combinations of sine functions but that seems more tricky than I thought.
A non-trivial example might be the Riemann zeta function (normalized to have unit average spacing), i.e., $f(x) = \text{Re}\zeta(\frac{1}{2}+\mathsf{i} \delta(x))$.
Background: The question is related to how random the roots of a deterministic function can be?


I would try a function like $\sin(x\arctan(x))$ since the periods get shorter as you aproach infinity but never aproach 0.