After running the following commands, the graphs of the two functions and will be plotted and saved in the file test.eps.
with("plot.x"); x = linspace(0, 10 * pi, 500); y1 = cos(x) .* exp(-.1 * x); y2 = sin(x) .* exp(-.1 * x); fig = figure.new(); fig.plot(x, y1); fig.plot(x, y2); fig.save("test.eps");