Charles Niven was a Scot who became Professor of Mathematics at Cork. He returned to Aberdeen as Professor of Natural Philosophy and held this post for 42 years.
Find out more at: https://mathshistory.st-andrews.ac.uk/Biographies/Niven_Charles/