1. In a reciprocating-piston engine that includes a gas exerting a conservative force on a piston resulting from a change in volume of the gas arising from a change in position of the piston, the improvement comprising a mechanism adapted to counter said conservative force with a counterforce acting on the piston, said counterforce being produced by a position-dependent force acting on the mechanism.