|
|
|||
File indexing completed on 2026-04-18 07:41:08
0001 /* 0002 * Copyright (C) 2006 International Atomic Energy Agency 0003 * ----------------------------------------------------------------------------- 0004 * 0005 * Permission is hereby granted, free of charge, to any person obtaining a copy 0006 * of this software and associated documentation files (the "Software"), to deal 0007 * in the Software without restriction, including without limitation the rights 0008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 0009 * copies of the Software, and to permit persons to whom the Software is furnished 0010 * to do so, subject to the following conditions: 0011 * 0012 * The above copyright notice and this permission notice shall be included in all 0013 * copies or substantial portions of the Software. 0014 * 0015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 0019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 0020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 0021 * THE SOFTWARE. 0022 * 0023 *----------------------------------------------------------------------------- 0024 * 0025 * AUTHORS: 0026 * 0027 * Roberto Capote Noy, PhD 0028 * e-mail: R.CapoteNoy@iaea.org (rcapotenoy@yahoo.com) 0029 * International Atomic Energy Agency 0030 * Nuclear Data Section, P.O.Box 100 0031 * Wagramerstrasse 5, Vienna A-1400, AUSTRIA 0032 * Phone: +431-260021713; Fax: +431-26007 0033 * 0034 * Iwan Kawrakow, PhD 0035 * e-mail iwan@irs.phy.nrc.ca 0036 * Ionizing Radiation Standards 0037 * Institute for National Measurement Standards 0038 * National Research Council of Canada Ottawa, ON, K1A 0R6 Canada 0039 * Phone: +1-613-993 2197, ext.241; Fax: +1-613-952 9865 0040 * 0041 ********************************************************************************** 0042 * For documentation 0043 * see http://www-nds.iaea.org/reports-new/indc-reports/indc-nds/indc-nds-0484.pdf 0044 **********************************************************************************/ 0045 // 0046 #define MAIN 0047 0048 #if (defined WIN32) || (defined WIN64) 0049 #include <iostream> // so that namespace std becomes defined 0050 #endif 0051 #include <cstdio> 0052 #include <cstdlib> 0053 #include <cstring> 0054 #include <cmath> 0055 #include <cctype> 0056 #include <algorithm> // for max() and min() 0057 0058 #include