Ruby On Ales 2016: Object Oriented Orbits: a primer on newtonian physics by Tobi Lehman

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=IaSPcs8Y6gc



Duration: 40:09
328 views
6


In this talk, we derive a simple 2D physics simulator, focusing on gravity and spherical objects. The speaker walks through a basic introduction to Newton's laws, and then derives a formula for a discrete approximation of the equations of motion. We convert the discrete approximation of the equations of motion into Ruby code, which accepts a state at a particular time, along with an interval of time, and then computes the new state at that following time interval. This updated state is then rendered using an HTML5 canvas element. The talk concludes with some demonstrations involving randomized initial conditions, highly symmetric initial conditions, and some awesome 3-body stable orbits.




Other Videos By Confreaks


2016-05-04DevOpsDays Rockies 2016: Pilot your Project: Avoiding Anti-Patterns While Handling Incidents ...
2016-05-04DevOpsDays Rockies 2016: Gokart to Grand Prix: How It Feels To Actually Go Fast by Seth Goings
2016-05-04DevOpsDays Rockies 2016: Production Testing Through Monitoring by Leon Fayer
2016-05-04DevOpsDays Rockies 2016: Fear and Loathing in Systems Administration by Waldo Grunenwald
2016-05-04DevOpsDays Rockies 2016: Security Automation for DevOps by Alan Robertson
2016-05-04DevOpsDays Rockies 2016: Living in a Hybrid World by Courtney Kissler
2016-05-04DevOpsDays Rockies 2016: How Netflix Thinks About DevOps by Dave Hahn
2016-04-21Ruby On Ales 2016: How to Stop Hating Your Test Suite by Justin Searls
2016-04-21Ruby On Ales 2016: Open Source Survival Guide by Mike Moore
2016-04-21Ruby On Ales 2016: Including People by André Arko
2016-04-21Ruby On Ales 2016: Object Oriented Orbits: a primer on newtonian physics by Tobi Lehman
2016-04-21Ruby On Ales 2016: Choices by Ernie Miller
2016-04-21Ruby On Ales 2016: Writing a Test Framework from Scratch by Ryan Davis
2016-04-21Ruby On Ales 2016: Sharpening The Axe: Self-Teaching For Developers by Aja Hammerly
2016-04-21Ruby On Ales 2016: BDD: Baby Driven Development by Allison McMillan
2016-04-21Ruby On Ales 2016: A Machine State of Mind by Vaidehi Joshi
2016-04-21Ruby On Ales 2016: In the Name of Whiskey by Julia Ferraioli
2016-04-21Ruby On Ales 2016: Fold, Paper, Scissors... by Amy Wibowo
2016-04-21Ruby On Ales 2016: Introducing the Crystal Programming Language by Will Leinweber
2016-04-21Ruby On Ales 2016: Why Good Software Goes Bad by Rein Henrichs
2016-04-14Mountain West Ruby 2016 - Lightning Talks