Margaret Hamilton, the computer scientist who led the team that wrote the onboard flight software for NASA’s crewed Apollo missions, died on Sept. 30, 2026, at a hospital in Cambridge, Massachusetts.