Student Support Forum
-----
Student Support Forum: 'Conversion 5->6 help' topicStudent Support Forum > General > Archives > "Conversion 5->6 help"

Next Comment >Help | Reply To Topic | Post New Topic
Author Comment/Response
Giulia
07/03/08 4:13pm

I tried to convert some code from the 'Mathematica in action ' book by Stan Wagon.
The following code need conversion:

cycloid[t_]:={t-Sin[t],1-Cos[t]}

frames=30;

locus=Table[cycloid[t],{t,0,2 \[Pi],2 \[Pi]/(frames-1)}];

Do[t = i 2 \[Pi]/(frames-1);
Show[Graphics[{
{GrayLevel[0.5],Disk[{t,1},1]},
Circle[{t,1},1],Line[{{-1,0},{7,0}}],
{AbsoluteThickness[2], Line[{{t,1},locus [[i+1]]}]},
{AbsolutePointSize[3], Map[Point,Take[locus,i+1]]} }],
AspectRatio->Automatic,
PlotRange -> {{-1.5, 7.5},{-0.2, 2.2}},
Frame -> True,FrameTicks -> None],

{i,0,frames-1}]

I know do must be changed with Animate.
But with this change, i receive the message 'take is not a graphics primitive or directive'.

Why? Please help.

thank you

Giulia

URL: ,

Subject (listing for 'Conversion 5->6 help')
Author Date Posted
Conversion 5->6 help Giulia 07/03/08 4:13pm
Re: Conversion 5->6 help Forum Modera... 07/06/08 06:43am
Re: Conversion 5->6 help Giulia 07/07/08 09:36am
Next Comment >Help | Reply To Topic | Post New Topic





 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: