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 Type your code here: Run Share Lua reference See your results here: Share your code × Show a friend, family member, or teacher what you've done! Here is a share link to your code:
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)