public class ElementData extends Object { //A few constants that are useful to have public static final double AVOGADRO=6.022e23; // per mole public static final double RE=2.818e-13; //cm (Thompson radius of the e-) public static final double AMU=1.66053e-24; //grams per amu /** * Returns a double precision array of all of the xray and neutron * data for the specified number and atomic weight. As noted in * the Element.java source the inNumber parameter is not Z as element * number 2 is deuterium. The actual Z is contained in the integer * array elementZ. If the parameters are bad it sets the parameter * to NaN which is easy to use in error checking later. */ public static double[] getData(int inNumber, int inA) { int index = 0; int z; boolean foundit = false; double[] parameters = new double[20]; z=inNumber-1; for(int j=0;j