Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.4K Views
|
5 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Point animated to follow a curve?

Posted 5 years ago
POSTED BY: Georges Sardin
5 Replies

Henrik and Rohit, Thanks a lot.

POSTED BY: Georges Sardin
Posted 5 years ago

Most likely because of existing conflicting symbol definitions. Try ClearAll[r] or quit the kernel.

POSTED BY: Rohit Namjoshi
POSTED BY: Henrik Schachner
POSTED BY: Georges Sardin

Georges, try:

r[t_] := 5 + Sin[20 t]; 
curves = ParametricPlot[r[t] {Cos[t], Sin[t]}, {t, 0, 2 Pi}];
Animate[Show[curves, Graphics[{PointSize[Large], Point[r[t] {Cos[t], Sin[t]}]}]], {t, 0, 2 Pi}]
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard