For the mathematical background, please read the Wikipedia page on catenary curves.

Number of zigzags: 2 ≤ 20 ≤ 50 |

Length of the chain (w.r.t. the canvas width): 120% ≤ 180% ≤ 300% |

The animation stops when the potential energy grows or decreases by ≤.

The full potential energy of the chain is **E=--.**

The maximum norm of the gradient vector is **|∇|=--.**

Copyright by © GĂˇbor P. Nagy, 2012.