Would there be any way to produce a force that follows a sinosoidal law? [closed]

What would produce a force that depends on the sine or cosine of the distance?

• try physics stack exchange... also are you looking for a force that push and pull object repetitively? – user6760 Dec 8 '15 at 6:26
• In other words, a force where $F\propto\sin r$? – HDE 226868 Dec 8 '15 at 16:52

Yes. A simple pendulum has a force proportional to $\sin \theta$, although a small-angle approximation is generally used, wherein $\theta$ is used instead. One might object that $\theta$ is not a length. I suspect that a "truly" sinusoidal force dependent on linear Euclidean distance might be difficult.