Much of the code here is self-describing through the comments. The point illustrated is that I have a background in mathematics and physics, including calculus and its subdisciplines, statistics, linear algebra, and so on.
This code exists for the purpose of calculating the exact needed deceleration factor for a projectile given a certain acceleration over time in order for said projectile to travel a given distance. I could've just eyeballed the process and come up with some arbitrary 'good enough' guess through trial and error. It would've worked, but it wouldn't have been as exciting, and it would have spared me from a moment of discipline in the pursuit of searching for 'correct' answers rather than merely 'good enough' answers.