rack locomotive


noun

a locomotive designed for operation on a rack railway.
Also called cog locomotive.