The Tragicomical History of Thermodynamics, 18221854 (Studies in the History of Mathematics and Physical Sciences)