Charles Babbage ( 26 December 1791 â `` 18 October 1871 ) was an English mathematician , analytical philosopher , mechanical engineer and computer scientist . Charles Babbage , FRS ( 26 December 1791 â `` 18 October 1871 ) was an English mathematician , philosopher , inventor , and mechanical engineer who originated the concept of a programmable computer .