Patent ID: 7961842

Claim:
An X-ray fluorescence spectrometer which comprises: an X-ray source for irradiating primary X-rays towards a sample; a detecting device for measuring an intensity of secondary X-rays emanating from the sample; and a calculating device operable to calculate a theoretical intensity of simulated secondary X-rays, emanated from an element or elements contained in the sample, based on an assumed composition and then to successively approximately modify and calculate the assumed composition so that the theoretical intensity and the measured intensity, which has been detected by the detecting device and then converted into a theoretical intensity scale, match with each other, to thereby calculate a composition of the sample; wherein the calculating device, when calculating the theoretical intensity, simulates simulated primary X-rays emanating from different positions and different directions which are determined with random numbers, respectively, to thereby determine the theoretical intensity of the simulated secondary X-rays using a plurality of optical paths through which the simulated primary X-rays travel towards a surface of the sample, and using a size of the sample, and an intensity and a plurality of incident angles of the simulated primary X-rays impinged upon various areas of the sample surface as parameters.