- 积分
- 133
- 注册时间
- 2006-1-10
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2010-9-22 19:29:40
|
显示全部楼层
来自 上海
本帖最后由 FreddyMusic 于 2010-9-22 19:42 编辑
I made some edit to implement in Manipulate.
It's looks pretty like "Pursuit Curve".
http://mathworld.wolfram.com/PursuitCurve.html
- equiangular[n_Integer,t_]:=
- Module[{arrow,point},
- arrow={Exp[-#(2Pi/n)-Pi*(t-0.005)+# (2Pi/n)]*{Cos[-#(2Pi/n)-Pi*(t-0.005)],Sin[-#(2Pi/n)-Pi*(t-0.005)]},Exp[-#(2Pi/n)-Pi*t+# (2Pi/n)]*{Cos[-#(2Pi/n)-Pi*t],Sin[-#(2Pi/n)-Pi*t]}}&/@Range[0,n-1];
- point=Flatten[{Exp[-#(2Pi/n)-Pi*t+# (2Pi/n)]*{Cos[-#(2Pi/n)-Pi*t],Sin[-#(2Pi/n)-Pi*t]}}&/@Range[0,n-1],1];
- Show[
- Graphics[{Red,PointSize[0.02],Arrow[#]&/@arrow,Blue,Line/@Partition[point,2,1,1]},PlotRange->{{-3/2,3/2},{-3/2,3/2}}],PolarPlot[{Exp[x+# (2Pi/n)]},{x,-#(2Pi/n),-#(2Pi/n)-Pi*t}]&/@Range[0,n-1],Frame->True]];
- Manipulate[equiangular[n,t],{n,2,10,1},{t,.01,1.5}]
复制代码
It can be very cool graphics if you are able to change the inital velocity for any direction. |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|