(42S) X-Ray Spectrometric Calculations - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (42S) X-Ray Spectrometric Calculations (/thread-15148.html) |
(42S) X-Ray Spectrometric Calculations - Eddie W. Shore - 06-06-2020 02:05 PM Introduction The program XRAY contains a menu of several calulations involving flat crystal spectronomers, which include: [ >EW ]: Energy wavelength conversion, where E * λ = 12.39852. E = energy and λ = wagelengtgh [ →N ]: Store n, where n is the nth crystal. You can calculate for any crystal and have any number of crystals for this program. [ANGLE]: Calculates the double diffraction angle, in degrees, of any crystal given n, E, and λ by using the Bragg Equation: θ = 2 * asin( (12.39852 * n) / (E * d) ) where d = the spacing of the crystal planes You will be prompted for E and d each time. [E KEV]: Uses the Bragg Equation to calculate energy (E), given n, d, and θ. You will be prompted for d and θ each time. [ENRGY]: Calculates the energy resolving power (δ) at an X-ray given its line energy (E), double refraction angle (θ), and angular divergence of the collimator (δ)). ENERGY = (E * 1000 * δ° * π / 180) / tan θ Enter δ in degrees. HP 42S/DM42/Free42 Program: XRAY This program is based on the HP 11C/HP 15C program as published by Török (see source) Code: 00 { 241-Byte Prgm } You can download this program here: https://drive.google.com/open?id=1k12l9Un9LgtrdC3139jS3SGYjNF30Qni Note N is stored in Register R01. Every other memory register can be used. Example For a two-crystal spectrometer with properties: Crystal 1 (n = 1): 6.285 Å (angstrom) (d) Crystal 2 (n = 2): 7.285 Å Angular divergence: 0.31° (δ) An M_α wave with wavelength 3.415 Å enters the system. Find the energy of this M_α wave and the double refraction angle for each crystal. Also was the energy-resolving power of each of the crystals. [ XEQ ] (XRAY) 3.415 ( >EN ) Result: E = 3.63061 keV (store this in R00) [STO] 00 1st Crystal [ R/S ] 1 ( →N ) (ANGL) "E?" [RCL] 00 [R/S] "2d?" 6.285 [R/S] Result: DBL ANGLE = 65.82494 (ENRGY) "DBL ANGLE?" [ R/S ] (since θ is still on the X stack) "DELTA?" 0.31 [STO] 02 [R/S] "E?" [RCL] 00 [R/S] Result: ENERGY= 30.34969 eV 2nd Crystal [ R/S ] 2 ( →N ) (ANGL) "E?" [RCL] 00 [R/S] "2d?" 7.285 [R/S] Result: DBL ANGLE = 139.28586 (ENRGY) "DBL ANGLE?" [ R/S ] (since θ is still on the X stack) "DELTA?" [RCL] 02 [R/S] "E?" [RCL] 00 [R/S] Result: ENERGY= 7.28859eV Source: Török, I. (1990), Line identification and other simple wavelength‐dispersive x‐ray spectrometric calculations using a pocket calculator. X‐Ray Spectrom., 19: 159-161. doi:10.1002/xrs.1300190314 Blog post: http://edspi31415.blogspot.com/2020/06/hp-42sdm42free42-x-ray-spectrometric.html |