Mathematician, philosopher, inventor and mechanical engineer who originated the concept of a programmable computer