PostScript command to calculate the
cosine of a
number.
Pops the top entry of the stack and returns the
cosine of the number, treated as an
angle in
degrees. Leaves the result on the top of the
stack.
Example:
%!PS
0 0 moveto
100 0 lineto
0 0 moveto
100 45 cos mul 100 45 sin mul lineto
stroke
showpage
quit