Say i have a mathematical function f I want to plot.
The easiest way to plot this is to evaluate it at small steps along the plotting domain and generate the points.
e.g f(0); f(0.1); f(0.2) ... get converted into (0, f(0)); (0.1, f(0.1)); (0.2, f(0.2)) ...
If one wants to draw a curve rather than dots, one could do
draw (0, f(0))--(0.1, f(0.1)); draw (0.1, f(0.1))--(0.2, f(0.2));
Inside of a loop. In other words, you write a loop, store the result of the prvious computation, compute the current value of x, draw a straigth segment, update x and continue.
Is it possible to do, for example:
%psuedocode pair list; draw list;