Code used in the generation of Rachwani-Santamaria disserations