The PostScript programming language is designed to describe the layout of graphics and text on the printed page. This website provides online utilities that show examples in actual practice.
postscript_math-sin
Example : Math sin
%! newpath 100 600 translate 0 0 moveto /span 1 def /x 0 def /y { x sin 100 mul} def 360 {/x x span add def x y lineto } repeat stroke showpage