Post Reply 
WP 34S and 31S bugs and fixes
09-13-2015, 02:37 AM
Post: #212
RE: WP 34S and 31S bugs and fixes
I see that NIST has a new list of CODATA 2014 recommended values of physical constants.
As such, I propose that compile_consts.c be edited to include the new values.

specifically, lines ~218-~278 be amended to read:
Code:

struct _constsml constsml[] = {
//from CODATA 2014 recommended values 25 June 2015
    CONSTANT("#",        "ZERO",        "0"),            // Zero & placeholder for small integers
    CONSTANT("a",        "PC_a",        "365.2425"),        // Days in a Gregorian year
    CONSTANT("a\270",    "PC_a0",    "5.2917721067E-11"),    // Bohr radius
    CONSTANT("c",        "PC_C",        "299792458"),        // Speed of light in a vacuum
    CONSTANT("c\271",    "PC_C1",    "3.741771790E-16"),    // First radiation constant
    CONSTANT("c\272",    "PC_C2",    "1.43877736E-2"),        // Second radiation constant
    CONSTANT("F",        "PC_F",        "96485.33289"),        // Faraday's constant
    CONSTANT("g",        "PC_g",        "9.80665"),        // Standard Earth acceleration
    CONSTANT("G",        "PC_G",        "6.67408E-11"),        // NIST 2010, IAU 2009 gives 6.67428E-11
    CONSTANT("G\270",    "PC_Go",    "7.7480917310E-5"),    // Conductace quantum
    CONSTANT("g\274",    "PC_Ge",    "-2.00231930436182"),    // Lande's electon g-factor
    CONSTANT("k",        "PC_k",        "1.38064852E-23"),    // Boltzmann constant
    CONSTANT("Kj",        "PC_Jk",    "483597.8525E9"),    // Josephson constant
    CONSTANT("N\327",    "PC_Na",    "6.022140857E23"),    // Avogadro's number
    CONSTANT("p\270",    "PC_atm",    "101325"),        // Standard atmospheric pressure
    CONSTANT("R",        "PC_R",        "8.3144598"),        // Molar gas constant
    CONSTANT("R\367",    "PC_Rk",    "25812.8074555"),    // von Klitzing's constant
    CONSTANT("R\233",    "PC_Rinf",    "10973731.568508"),    // Rydberg constant
    CONSTANT("T\270",    "PC_t",        "273.15"),        // 0 degree celcus, standard temperature
    CONSTANT("V\033",    "PC_Vm",    "22.413962E-3"),    // Molar volume of an ideal gas at STP
    CONSTANT("Z\270",    "PC_Zo",    "376.73031346177065546819840042031930826862350835241865523"),    // Characteristic impedance of vacuum
    CONSTANT("\240",    "PC_alpha",    "7.2973525664E-3"),    // Fine-structure constant
    CONSTANT("\242\276",    "PC_gamP",    "2.675221900E8"),    // Proton gyromagnetic ratio
    CONSTANT("\244\270",    "PC_eps0",    "8.8541878176203898505365630317107502606083701665994498E-12"),    // Electric constant, vacuum permittivity
    CONSTANT("\253\270",    "PC_mu0",    "12.566370614359172953850573533118011536788677597500423E-7"),    // Magnetic constant
    CONSTANT("\253\230",    "PC_muB",    "927.4009994E-26"),    // Bohr's magneton
    CONSTANT("\253\277",    "PC_mu_u",    "5.050783699E-27"),    // Nuclear magneton
    CONSTANT("\261\230",    "PC_sigma",    "5.670367E-8"),        // Stefan Boltzmann constant
    CONSTANT("\224\270",    "PC_phi0",    "2.067833831E-15"),    // Magnetic flux quantum

    /* Plank related constants */
    CONSTANT("h",        "PC_PLANK",    "6.626070040E-34"),    // Planck's constant
    CONSTANT("\236",    "PC_hon2PI",    "1.054571800E-34"),    // Planck's constant over 2 pi.
    CONSTANT("l\276",    "PC_PlanckL",    "1.616229E-35"),    // Base Planck unit of length
    CONSTANT("M\276",    "PC_PlanckM",    "2.176470E-8"),        // Base Planck unit of mass
/**/    CONSTANT("q\276",    "PC_PlanckQ",    "1.8755460e-18"),    // Base Planck unit of charge
    CONSTANT("T\276",    "PC_PlanckTh",    "1.416808E32"),        // Base Planck unit of temperature
    CONSTANT("t\276",    "PC_tp",    "5.39116E-44"),        // Base Planck unit of time

    /* Atomic constants */
    CONSTANT("e",        "PC_eV",    "1.6021766208E-19"),    // Electron Charge
    CONSTANT("r\274",    "PC_Re",    "2.8179403227E-15"),    // Classical electron radius
    CONSTANT("m\274",    "PC_me",    "9.10938356E-31"),    // Electron mass
    CONSTANT("m\275",    "PC_mn",    "1.674927471E-27"),    // Neutron mass
    CONSTANT("m\276",    "PC_mp",    "1.672621898E-27"),    // Proton mass
    CONSTANT("m\277",    "PC_mu",    "1.660539040E-27"),    // Atomic mass unit
    CONSTANT("m\231",    "PC_mMu",    "1.883531594E-28"),    // Muon mass
//    CONSTANT("m\274c\232",    "PC_mec2",    "8.18710565E-14"),    // Electron mass by c^2
//    CONSTANT("m\275c\232",    "PC_mnc2",    "1.505349739E-10"),    // Neutron mass by c^2
//    CONSTANT("m\276c\232",    "PC_mpc2",    "1.503277593E-10"),    // Proton mass by c^2
    CONSTANT("m\277c\232",    "PC_muc2",    "1.492418062E-10"),    // Atomic mass unit by c^2
//    CONSTANT("m\231c\232",    "PC_mMuc2",    "1.692833774E-11"),    // Muon mass by c^2
    CONSTANT("\252\273",    "PC_lamC",    "2.4263102367E-12"),    // Compton wavelength of the electron
    CONSTANT("\252\273\275","PC_lamCn",    "1.31959090481E-15"),    // Compton wavelength of the neutron
    CONSTANT("\252\273\276","PC_lamCp",    "1.32140985396E-15"),    // Compton wavelength of the proton
    CONSTANT("\253\274",    "PC_muE",    "-928.4764620E-26"),    // Electron magnetic moment
    CONSTANT("\253\275",    "PC_mun",    "-0.96623650E-26"),    // Neutron magnetic moment
    CONSTANT("\253\276",    "PC_muP",    "1.4106067873E-26"),    // Proton magnetic moment
    CONSTANT("\253\231",    "PC_mumu",    "-4.49044826E-26"),    // Muon magnetic moment

Since I'm just getting started here, I have not committed these changes.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WP 34S and 31S bugs and fixes - Bit - 11-22-2014, 07:49 PM
RE: WP 34S and 31S bugs and fixes - Bit - 11-23-2014, 06:48 PM
RE: WP 34S and 31S bugs and fixes - Bit - 11-24-2014, 02:21 AM
RE: WP 34S and 31S bugs and fixes - Bit - 11-25-2014, 05:11 AM
RE: WP 34S and 31S bugs and fixes - Bit - 11-26-2014, 05:24 AM
RE: WP 34S and 31S bugs and fixes - Bit - 11-26-2014, 01:35 PM
RE: WP 34S and 31S bugs and fixes - Bit - 11-26-2014, 01:38 PM
RE: WP 34S and 31S bugs and fixes - Bit - 11-26-2014, 07:56 PM
RE: WP 34S and 31S bugs and fixes - Bit - 11-27-2014, 02:13 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-31-2015, 01:32 AM
RE: WP 34S and 31S bugs and fixes - Bit - 11-29-2014, 08:31 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-06-2014, 03:23 AM
RE: WP 34S and 31S bugs and fixes - Bit - 12-06-2014, 03:02 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-07-2014, 09:38 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-12-2014, 03:20 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-06-2014, 08:44 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-07-2014, 10:01 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-08-2014, 03:38 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-08-2014, 05:19 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-08-2014, 05:49 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-08-2014, 06:34 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-16-2014, 02:57 AM
RE: WP 34S and 31S bugs and fixes - Bit - 12-24-2014, 01:09 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-24-2014, 02:36 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-24-2014, 04:30 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-17-2014, 12:55 AM
RE: WP 34S and 31S bugs and fixes - Bit - 12-23-2014, 04:03 AM
RE: WP 34S and 31S bugs and fixes - Bit - 12-23-2014, 01:23 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-23-2014, 04:48 AM
RE: WP 34S and 31S bugs and fixes - Bit - 12-23-2014, 01:38 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-01-2015, 10:42 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-24-2014, 01:11 PM
RE: WP 34S and 31S bugs and fixes - Bit - 12-24-2014, 04:36 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-08-2015, 03:04 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-08-2015, 04:34 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-08-2015, 05:28 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-09-2015, 12:32 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-09-2015, 12:38 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-10-2015, 06:28 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-17-2015, 04:50 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 03:42 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 05:32 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 06:47 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 08:54 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 09:12 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 09:37 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-11-2015, 05:07 AM
RE: WP 34S and 31S bugs and fixes - DMaier - 01-11-2015, 06:51 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-12-2015, 12:48 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-12-2015, 01:31 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-12-2015, 02:00 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-12-2015, 05:44 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-12-2015, 11:39 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-17-2015, 02:34 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-17-2015, 05:16 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-17-2015, 05:47 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-17-2015, 04:20 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-17-2015, 04:35 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 03:11 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-18-2015, 09:56 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-24-2015, 04:37 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-25-2015, 04:42 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-25-2015, 05:27 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-25-2015, 05:50 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-25-2015, 06:08 PM
RE: WP 34S and 31S bugs and fixes - Bit - 01-28-2015, 12:26 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-21-2015, 12:40 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-22-2015, 05:16 AM
RE: WP 34S and 31S bugs and fixes - Bit - 01-31-2015, 12:52 AM
RE: WP 34S and 31S bugs and fixes - Bit - 02-07-2015, 06:17 PM
RE: WP 34S and 31S bugs and fixes - Bit - 02-08-2015, 05:58 PM
RE: WP 34S and 31S bugs and fixes - Bit - 02-20-2015, 04:52 AM
RE: WP 34S and 31S bugs and fixes - Bit - 02-24-2015, 03:50 AM
RE: WP 34S and 31S bugs and fixes - Bit - 03-15-2015, 04:55 PM
RE: WP 34S and 31S bugs and fixes - Dieter - 03-15-2015, 10:41 PM
RE: WP 34S and 31S bugs and fixes - Bit - 03-15-2015, 10:50 PM
RE: WP 34S and 31S bugs and fixes - Pascal - 05-07-2015, 07:47 AM
RE: WP 34S and 31S bugs and fixes - fhub - 05-07-2015, 11:56 AM
RE: WP 34S and 31S bugs and fixes - fhub - 05-07-2015, 02:05 PM
RE: WP 34S and 31S bugs and fixes - fhub - 05-07-2015, 03:23 PM
RE: WP 34S and 31S bugs and fixes - fhub - 05-09-2015, 05:19 PM
RE: WP 34S and 31S bugs and fixes - Marcio - 06-10-2015, 07:06 AM
RE: WP 34S and 31S bugs and fixes - Marcio - 06-10-2015, 01:06 PM
RE: WP 34S and 31S bugs and fixes - 2far - 08-27-2015, 11:06 AM
RE: WP 34S and 31S bugs and fixes - 2far - 08-27-2015, 04:09 PM
RE: WP 34S and 31S bugs and fixes - 2far - 08-27-2015, 09:55 PM
RE: WP 34S and 31S bugs and fixes - sat1410 - 09-13-2015 02:37 AM
RE: WP 34S and 31S bugs and fixes - fhub - 10-01-2015, 03:37 PM
RE: WP 34S and 31S bugs and fixes - d b - 10-02-2015, 03:21 AM
RE: WP 34S and 31S bugs and fixes - Pascal - 12-21-2015, 04:40 PM
RE: WP 34S and 31S bugs and fixes - Marcio - 12-21-2015, 08:41 PM
RE: WP 34S and 31S bugs and fixes - fhub - 12-22-2015, 10:39 AM
RE: WP 34S and 31S bugs and fixes - fhub - 12-22-2015, 01:20 PM
Moving off-screen window - striegel - 01-13-2016, 11:10 AM
RE: WP 34S and 31S bugs and fixes - fhub - 01-13-2016, 03:10 PM
RE: WP 34S and 31S bugs and fixes - Leonid - 02-04-2017, 06:48 AM
RE: WP 34S and 31S bugs and fixes - Nick - 02-07-2017, 02:47 PM
RE: WP 34S and 31S bugs and fixes - Leonid - 02-08-2017, 08:10 AM
RE: WP 34S and 31S bugs and fixes - Nick - 02-08-2017, 08:41 AM
RE: WP 34S and 31S bugs and fixes - vido - 02-07-2017, 08:00 AM
RE: WP 34S and 31S bugs and fixes - vido - 02-07-2017, 07:35 PM
RE: WP 34S and 31S bugs and fixes - Dieter - 05-23-2017, 12:19 PM
RE: WP 34S and 31S bugs and fixes - Dieter - 05-23-2017, 05:05 PM



User(s) browsing this thread: 2 Guest(s)