On October 16 1843, the Irish mathematician William Rowan Hamilton had an epiphany during a walk alongside Dublin's Royal Canal.