Summary

This MATLAB script was made in fall of 2025 as my computational project for Classical Mechanics 1. It plots the predicted trajectories of the three bodies in simple planar three-body problems up until t=10.

I really enjoyed this project because it was my first time implementing an ODE solver (ODE45). After taking multiple classes focused on solving differential equations analytically, and then learning about the Runge–Kutta method at PolySim, actually getting to implement a numerical solver myself was very insightful. Now I understand the input arguments to the function and will be adequately prepared for my future where I foresee myself using ode solvers extensively.

Hand Calculations

MATLAB Script

Date Completed: November 10, 2025