Introduction

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.

2.06.2010

Math :: sin

postscript postscript_math-sin

Example : Math sin

postscript_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
    

postscript postscript_math-sin