By 1938 the United States Navy had developed an electromechanical analog computer small enough to use aboard a submarine