Advertisement
Matthen

From 1 to 10,000

Jul 17th, 2011
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. t = Flatten[Table[{i, j}, {i, 10}, {j, 10}], 1];
  2. f[0, p_] := p;
  3. f[n_Integer, p_] := Map[f[n - 1, p + 12^n #] &, t];
  4. points = Partition[Flatten[f[2, {0, 0}]], 2];
  5. r = {Min[points] - 1, Max[points] + 1};
  6. zoom[z_] :=
  7. Graphics[{PointSize[1/300 + 1/(10 + z)], Point[points]},
  8. ImageSize -> {300, 300},
  9. PlotRange -> {{r[[1]], r[[1]] + z}, {r[[1]], r[[1]] + z}}];
  10. Manipulate[zoom[z], {z, 2, r[[2]] - r[[1]]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement