word-forming element meaning "not, opposite of, without" (also im-, il-, ir- by assimilation of -n- with following consonant, a tendency which began in later Latin), from Latin in- "not," cognate with Greek an-, Old English un-, all from PIE root *ne- "not."
In Old French and Middle English often en-, but most of these forms have not survived in Modern English, and the few that do (enemy, for instance) no longer are felt as negative. The rule of thumb in English has been to use in- with obviously Latin elements, un- with native or nativized ones.
"precise, rigorous, accurate," 1530s, from Latin exactus "precise, accurate, highly finished," past-participle adjective from exigere "demand, require, enforce," literally "to drive or force out," also "to finish, measure," from ex "out" (see ex-) + agere "to set in motion, drive, drive forward; to do, perform" (from PIE root *ag- "to drive, draw out or forth, move").
Others are reading
<a href="https://www.etymonline.com/word/inexact">Etymology of inexact by etymonline</a>
Harper, D. (n.d.). Etymology of inexact. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/inexact