https://courses.physics.illinois.edu/phys486/sp2025/secure/homework/computation-2-solution.pdf