Elementary Treatise on Mechanics ch. 4 (1819). This is an instance of unintentional rhyme and meter. After the passage's poetical qualities were pointed out to him,Whewell altered it in subsequent editions of the book.