Git Product home page Git Product logo

johnnyawesome / doublependulum Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.55 MB

A double pendulum, demonstrating the three-body problem

License: MIT License

JavaScript 99.80% HTML 0.20%
double-pendulum double-pendulum-simulation javascript javascript-animation p5 p5-js p5-play p5js p5js-animation p5js-game p5play three-body-problem pendulum pendulum-joint pendulum-problem pendulum-simulation threebody threebodyproblem animated animation

doublependulum's Introduction

DoublePendulum

A double pendulum, demonstrating the three-body problem.

Double Pendulum three-body problem

The three-body problem comes from physics and mathematics, specifically dynamical systems.

Double pendulums are an easy way of demonstrating the three-body problem.

In a nutshell:

  • A pendulum is 100% deterministic. A pendulum's future positions are predictable once you know certain facts about it.
  • A double-pendulum (which is nothing but adding another pendulum to the first one) on the other hand, behaves chaotic. Mind you, it is still deterministic. But long-term predictions where the pendulums will be in the (far) future are almost impossible.

Two versions

Interactive version

This animation is interactive:

You can grab the middle-pendulum with your mouse and give it a push for more acceleration.

You can also adjust the pendulum-size via a slider:

Double Pendulum three-body problem drag and adjust gravity

Finally, you can change the gravity, too, via a slider:

Double Pendulum three-body problem drag and adjust size

doublependulum's People

Contributors

johnnyawesome avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.