In a typical $\cos(x)$ or $\sin(x)$ function, each successive crest or trough is equidistant from the next.
How can I represent a function where as $x$ increases, the next crest or trough may not be equidistant (slightly more or less than what it should)?
I want to plot this on a graph, so I would prefer it if it is the form $y=\cos(x)$ or something else easy to calculate when I feed it into the computer.
EDIT: Is it possible for this the crests to neither get closer or further as $x$ tends to infinity? (the distance between crests and trough should keep varying, but neither get successively closer or further).
