# Fourmilab Double Pendulum for Second Life

**URL:** https://scanalyst.fourmilab.ch/t/fourmilab-double-pendulum-for-second-life/2058
**Category:** Fourmilab
**Tags:** second-life, science-simulations, double-pendulum, chaos, classical-mechanics
**Created:** [24 September 2022 14:49 UTC](https://scanalyst.fourmilab.ch/t/fourmilab-double-pendulum-for-second-life/2058 "2022-09-24T14:49:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![johnwalker](https://scanalyst.fourmilab.ch/user_avatar/scanalyst.fourmilab.ch/johnwalker/32/17415_2.png) [@johnwalker](https://scanalyst.fourmilab.ch/u/johnwalker)
#### Post date: [24 September 2022 14:49 UTC](https://scanalyst.fourmilab.ch/t/fourmilab-double-pendulum-for-second-life/2058/1 "2022-09-24T14:49:29Z")

</div>

[![](https://scanalyst.fourmilab.ch/uploads/default/original/2X/3/3d8f8614131f93661486d60c3a2ccf0c2c467eb5.jpeg "Fourmilab Double Pendulum for Second Life") ](https://www.youtube.com/watch?v=eOBY2C0BamI)

[Fourmilab Double Pendulum](https://marketplace.secondlife.com/p/Fourmilab-Double-Pendulum/23992138) for the [Second Life](https://en.wikipedia.org/wiki/Second_Life) virtual world has now been released and is available for free, with full permissions (copy/modify/transfer) from the Second Life Marketplace. It is a physical model of a [double pendulum](https://en.wikipedia.org/wiki/Double_pendulum) system in which two masses (“bobs”) swing on frictionless bearings on rods, with the first mass connected to a fixed hub and the second mass swinging freely beneath the first. This simple system exhibits extraordinarily complicated and chaotic motion, which varies dramatically as parameters of the system (masses of the bobs, lengths of the rods, initial displacements of the masses) are varied. Fourmilab Double Pendulum models an ideal double pendulum system, with no friction or air resistance, and allows you to change the parameters of the model and observe the results. Facilities allow tracking the chaotic motion of the lower bob, displaying its path as the system evolves. The model is fully scriptable with commands supplied in notecards in its inventory and scripts may define pop-up menus through which an avatar may interact with the model.

For details, see the “[Fourmilab Double Pendulum User Guide](https://raw.githubusercontent.com/Fourmilab/double_pendulum/master/notecards/double_pendulum_user_guide.nc)” which is provided as the help file with the model. Complete source code is available from the project’s [GitHub repository](https://github.com/Fourmilab/double_pendulum).

Lest you think the chaotic behaviour of this classical mechanical system is a fantasy of computer simulation, here is a (literally) nuts and bolts double pendulum swinging in the real world. (In this video, the device is a [compound pendulum](https://en.wikipedia.org/wiki/Pendulum#Compound_pendulum) in which the mass of the arms is distributed along their length, while my model is a simple pendulum where mass is concentrated in the two bobs and the rods connecting them are treated as massless. This makes no difference in the behaviour of the system.)

[![](https://scanalyst.fourmilab.ch/uploads/default/original/2X/d/d9ebe1fbf46d8afdfb7d3221f8ec3f3bca78d9bc.jpeg "Double Pendulum") ](https://www.youtube.com/watch?v=U39RMUzCjiU)

Here is a derivation of the equations of a double pendulum system using [Lagrange’s equations](https://en.wikipedia.org/wiki/Lagrangian_mechanics). My simulation performs its calculations using the closely related [Hamiltonian mechanics](https://en.wikipedia.org/wiki/Hamiltonian_mechanics), which works in terms of momenta rather than velocities.

[![](https://scanalyst.fourmilab.ch/uploads/default/original/2X/d/dc844538831fa0f72ea51caeb95d622efccda876.jpeg "Equations of Motion for the Double Pendulum (2DOF) Using Lagrange's Equations") ](https://www.youtube.com/watch?v=tc2ah-KnDXw)

 ![double_pendulum_01](https://scanalyst.fourmilab.ch/uploads/default/original/2X/5/5c9b3047d06ec5d190d76d8042e65b443e59a45e.png)

_Of course_ you can wear it as a hat!

 ![dphat](https://scanalyst.fourmilab.ch/uploads/default/original/2X/d/d7f9d3add3663ec9439d217d30e7764b9937330e.png)

---

<div class="post-metadata">

### Author: ![Jiggs](https://scanalyst.fourmilab.ch/letter_avatar_proxy/v4/letter/j/ecc23a/32.png) [@Jiggs](https://scanalyst.fourmilab.ch/u/Jiggs)
#### Post date: [24 September 2022 15:38 UTC](https://scanalyst.fourmilab.ch/t/fourmilab-double-pendulum-for-second-life/2058/2 "2022-09-24T15:38:00Z")

</div>

Amazing stuff; and a testament to Numerical Methods.

FEW exact solutions exist—in any field. Numerical Methods are essential and unfortunately—do not receive enough attention.

---

<div class="post-metadata">

### Author: ![civilwestman](https://scanalyst.fourmilab.ch/user_avatar/scanalyst.fourmilab.ch/civilwestman/32/25_2.png) [@civilwestman](https://scanalyst.fourmilab.ch/u/civilwestman)
#### Post date: [24 September 2022 16:15 UTC](https://scanalyst.fourmilab.ch/t/fourmilab-double-pendulum-for-second-life/2058/3 "2022-09-24T16:15:45Z")

</div>

> [@johnwalker](#):
>
> _Of course_ you can wear it as a hat!

Uni-sex? Gender-inclusive? A_de rigueur_, matching bag…? One’s Second Life surely requires proper coordinates.

---

<div class="post-metadata">

### Author: ![jdougan](https://scanalyst.fourmilab.ch/user_avatar/scanalyst.fourmilab.ch/jdougan/32/2477_2.png) [@jdougan](https://scanalyst.fourmilab.ch/u/jdougan)
#### Post date: [26 September 2022 04:02 UTC](https://scanalyst.fourmilab.ch/t/fourmilab-double-pendulum-for-second-life/2058/4 "2022-09-26T04:02:05Z")

</div>

Quaternions next?
