I'm searching the formula/expression of the "zigzag" function that returns the following curve/graph:
$\quad\qquad\qquad\qquad\qquad$
I'm looking for
- that's trigonometric and
- that's non-trigonometric
Please help. Hopefully one or both are simple enough (not too complex).
Why I'm looking for the above function/graph?
In this post it struck me to at least confirm which result was correct by drawing the above graph for both the objects and then counting all the point of intersections. Thus, confirming the correct answer. But while going to GeoGebra I realized my ignorance/ineptitude to draw such a graph. Though I think I used to be able to draw/know one.