Need help with plotting
Trying to plot a line that has one point at (0,0) and the second point at (x(t),y(t)). I am trying to get it to range from t = 0 to 2*pi however, I am not sure how to do it with the line command. I am getting the following error but that is because t has no value defined (TypeError: unable to simplify to float approximation). Appreciate any help!
t = var('t')
x(t) = cos(t) + cos(2t)
y(t) = sin(t) + sin(3*t)
line([(0,0),(x(t),y(t))]
This sounds like homework where there's a misunderstanding as to what you're supposed to do. Try: t = var('t') parametric_plot((cos(t)+cos(2t), sin(t) + sin(3t)), (t, 0, 2*pi), color=hue(0.6)) to see the parametric curve formed by your equations above. You can't form a line without a specific value of t to get the second point.