Coding challenge

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)

Type your code here:


Lua reference

See your results here: