Time
Nearest magnet
Map
3
Physics
0.15
0.30
1.00
0.50
1.00
Display
45%

More about the magnetic pendulum

Magnetic pendulum

An iron bob on a pendulum swings above a few magnets. It darts between them, circles, and finally comes to rest over one. Which one? Start it a hair's breadth away and the answer can change. Color every starting point by the magnet it ends at, and that sensitivity draws a fractal.

How it works

  1. Open this page and the bob is already swinging over the map. Its trail takes the color of the magnet it is nearest to.
  2. Click or drag anywhere to let it go from there. It always ends on the magnet whose color is under the point you chose.
  3. Drag a magnet, or change Friction or Magnet strength, and watch the map redraw itself. Set Map to 100% for the fractal alone, then save a PNG.

Three magnets, one pendulum

The bob hangs from a long string above a table with magnets on it. Gravity pulls it back toward the middle, each magnet pulls it toward itself, and the air slows it down. In the end it loses its energy and stops above one of the magnets. Seen from above, its path is a tangle of loops.

Where it starts decides where it ends

Each point on the map is a starting point, colored by the magnet the bob comes to rest over when it is let go there. Near the magnets the colors are calm and wide. Further out they fold into ever finer bands, and two neighboring start points can end at different magnets.

That is chaos: fixed laws, yet an outcome you cannot predict without perfect precision.

Reading the map

The shading shows time: bright where the bob settles quickly, darker where it wanders longer. Friction sets how long the dance lasts, Height how sharply the magnets pull, and Gravity how hard the pendulum swings back to the middle. Less friction gives a finer, wilder map.

Using the app

Click or drag on the picture to let the bob go from there, and drag a magnet to move it. Each color on the map shows the magnet the bob comes to rest over when it starts from that point.⁣

Frequently asked questions

Is the magnetic pendulum really chaotic?

Yes. Its motion follows fixed laws, yet tiny changes in the starting point grow until they decide the outcome. The fine bands on the map are where that happens.

Why does the bob always end on the color under its starting point?

The pendulum and the map use the same calculation with the same time step. Every pixel of the map is a full run of the pendulum from that point.

What do Height and Magnet strength do?

Height is how far the bob passes above the magnets. A lower bob feels a sharper, stronger pull close to each magnet. Magnet strength scales the pull of every magnet.

Why does the map take a moment to finish?

Each pixel needs a whole simulation, often hundreds of steps. The map first appears coarse and then sharpens. It is computed in the background, so the pendulum keeps swinging.

Why does the magnetic pendulum make a fractal?

Because the borders between the colours never become clean lines. Between two coloured areas lie thin bands of the other colours, and between those bands even thinner ones, so the pattern repeats at ever smaller scales. These are fractal basins of attraction. Set Map to 100% to see them alone, or change Magnets (2 to 6).

磁性擺: how do I record a video?

Press the red Record button in the playback bar: it films what the stage shows. Press it again to stop, and the video is saved to your device.Recording is free; you only need to sign in. Without a subscription the video carries a small PictorX logo in a corner.The button beside Record opens the video options: the shape (as shown, square, story 9:16 or wide 16:9), the length (until you stop, or 5, 10, 15 or 30 seconds for social media) and the file: MP4, WebM or an animated GIF.You can add one of three music tracks: calm, bright or beat.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

前往編輯器