This comparison circuit operates similarly to the comparison circuits 62 and 70 to derive relative gamma ray yields of borehole and formation constituents, including elements such as oxygen and carbon which are not determinable with the capture spectra but which are useful in the analysis of the formation 16.