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.

#### AUTHOR

### You may also like

Introduction to Inverse and One-To-One Functions including the definitions and graphs/visuals.

Download the Avanti Gurukul App from the google store now and get all the videos by India’s top teachers on your phone. Click here to download: https://play.google.com/store/apps/details?id=in.avanti.gurukul.learning.cbse.ncert.iit.video.test.doubt&referrer=utm_source%3DYouTube%26utm_medium%3DYouTube%2520Description%26utm_campaign%3DAll-YT-Description Class 11 Physics – Motion in One Dimension We have learnt about motion in our previous classes as well. We are surrounded by motion. Even the earth which…

Amazing, Life Changing Tutor

Before I met Jonathan, I was struggling through most of my STEM classes because I was simply not studying properly. He taught me all kinds of new study habits that would help me to save time, raise my grades, and lower my stress. Jonathan was specifically tutoring me in vector calculus and is an amazing tutor on the subject. You will walk away from a lesson with a game plan knowing exactly what you need to do before your next session with him or before your next exam in order to do well in the course. I highly recommend him as a tutor.

algebra tutor – trigonometry tutor – precalculus tutor – calculus tutor – differential calculus tutor – integral calculus tutor – linear algebra tutor – differential equations tutor – physics tutor – mechanics physics tutor – electromagnetism physics, tutor

#algebra #ssc_cgl #ssc_cds #ssc_cpo #shubhconcept Also subscribe to my official channel https://www.youtube.com/channel/UC3zlzM9Se40prTz_LsyaBNA TELEGRAM GROUP LINK https://t.me/RBE_S ALGEGRA COMPLETE PDF (NO NEED TO WASTE TIME IN MAKING NOTES). https://drive.google.com/open?id=1SNbKlhDP_VNIwh7_BITYnySHKwgJCm0V COMPLETE NUMBER SYSTEM FOR SSC CGL | CPO | CDS (7:20 hr video) https://youtu.be/7Sr_yT04NMY WHAT WE SHALL BE DISCUSSING IN TODAY’S SESSION 1) POLYNOMIAL (including questions based…

You must log in to post a comment.