I drew simple triangle wave (that you can see It on graph toy).
f1(x) = frac(x/(PI+5))*(PI+5)
f2(x) = frac(-x/(PI+5))*(PI+5)
f3(x) = min(f1(x),f2(x))*1.5
I want to change above shape like Approximating Pi and repeat It periodically along the horizontal axis.
then I want to cut negative parts of the vertical axis:
Update
Note that I know how can I draw It by shader In ShaderToy.I Just need drawing mathematics In desmos or graphtoy,because I want Extract values of wave.I want to create polygon wave form.
I drew Periodic shape that I want to change the number of polygons Desoms Link.