In 1873 he became professor of mathematics at the US Naval Observatory, where he made a favorable impression on Simon Newcomb.
He was president of the University of California from 1885 until 1888,[REF] and the first director of the Lick Observatory from 1888 until the end of 1897.