Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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)