A woman mathematician worked in a cramped rail-control office, surrounded by screens showing train positions and platform crowds.