Conservation of momentum in elastic collisions using python 3 and the Turtle module

Опубликовано: 19 Октябрь 2024
на канале: Jean Joubert
598
7

Simple program to calculate change of momentum after elastic collisions using python 3 and the Turtle module. This was my first attempt. (I did forget to show changed values after bouncing on the sides!!). I added a later code using Galilean Transformation which is more correct and easier.

2D extension of this model:
   • Python model for conservation of mome...  

Feel free to look at the code for improvements/comments.
https://www.dropbox.com/sh/2owtl6391n...