 His father took the name Oliver Shaw Rankin on marriage and became Professor of Old Testament Language, Literature and Theology in the University of Edinburgh.Rankin was educated at Fettes College then studied Mathematics at Clare College, Cambridge, graduating in 1937.At Cambridge he was particularly influenced by J.E.