Coding challenge

Run this code, to make a parametric plot of $x(t)=10\sin(t)^3$ and $y(t)=9\cos(t)-4\cos(2t)-\cos(3t)-\cos(4t)$. We'll let you program in the equations in the x[k]= and y[k]= lines, to fill the arrays that lineplot will use. The plot should appear below the code menu. Show it to someone on Feb. 14th.
x={}
y={}
k = 0
for t=0,2*math.pi,0.1 do
  x[k] = 
  y[k] = 
  k=k+1
end
lineplot(x,y)

Type your code here:


Lua reference

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: