1826, "an analogous thing," from French analogue (adj. and n.), from Latin analogus (adj.), from Greek analogos "proportionate, according to due proportion," from ana "throughout; according to" (see ana-) + logos "ratio, proportion," a specialized use (see Logos).
The word was used in English in Greek form (analogon) in 1810. Meaning "word corresponding with another" is from 1837. Computing sense, in reference to operating with numbers represented by some measurable quantity (as a slide-rule does; opposed to digital) is recorded from 1946.