In his Introduction to the Principles of Morals and Legislation (1789), Jeremy Bentham describes his "felicific calculus"—an algorithm for working out the amount of happiness likely to be caused by a ...