Experiment with plotting functions. Here's how to plot a sine-wave. x = {} y = {} k = 0 for i=0,20*math.pi,0.1 do x[k] = i y[k] = sin(i) k=k+1 end lineplot(x,y) ← Back to challenges | Lessons

x = {} y = {} k = 0 for i=0,20*math.pi,0.1 do x[k] = i y[k] = sin(i) k=k+1 end lineplot(x,y)

Run Share Lua reference