- 积分
- 133
- 注册时间
- 2006-1-10
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2007-5-31 14:33:06
|
显示全部楼层
来自 江苏无锡
- For[k = 0, k < 43200,
-
- (* Define Show Time *)
- s = Mod[k, 60];
- m = Mod[(k - s)/60, 60];
- h = (k - s - m*60)/(60*60);
-
- (* Define Point Scale *)
- PS = 0.2*s;
- PM = 0.2*m;
- PH = h + 0.2*Floor[m/12];
-
- If[PS == PM && PM == PH && PH == PS,
- Print["Show Time = ", h, ":", m, ":", s, " -> Point Scale = ", PH, ":", PM, ":", PS];
-
- Show[
- Graphics[{
-
- Thickness[0.01],
- (* construction Scale and circles *)
- Circle[{0, 0}, 1, {0, 2π}],
- Text["9", {-1.1, 0}, {-1.1, 0}],
- Text["3", {1.1, 0}, {1.1, 0}],
- Text["12", {0, 1.05}, {0, -1.05}],
- Text["6", {0, -1.05}, {0, 1.05}],
-
- (* Replot 3 Arms *)
- Thickness[0.01], Hue[0.5],
- Line[{{0, 0}, {0.9*Cos[90° - PS*30°], 0.9*Sin[90° - PS*30°]}}],
- Thickness[0.02], Hue[0.7],
- Line[{{0, 0}, {0.6*Cos[90° - PM*30°], 0.6*Sin[90° - PM*30°]}}],
- Thickness[0.03], Hue[0.9],
- Line[{{0, 0}, {0.3*Cos[90° - PH*30°], 0.3*Sin[90° - PH*30°]}}]
- }],
- AspectRatio -> Automatic, PlotRange -> All
- ],
- ];
-
- k++];
复制代码
[ 本帖最后由 FreddyMusic 于 2007-5-31 14:41 编辑 ] |
|