Post Reply 
Constants aren't so constant [SOLVED]
12-05-2016, 03:26 PM (This post was last modified: 12-05-2016 03:27 PM by Tim Wessman.)
Post: #2
RE: Constants aren't so constant
(12-03-2016 04:14 PM)JMB Wrote:  Today these values are dated, because a new set of values was stablished in 2014 (for example, te current value for G is: 6.67408E-11).

I'd be happy to do so, but it is a pretty low priority item at this point. The thing that takes the longest is simply going through the table and finiding which did or didn't change. If you wanted to point those out, I'd be much more likely to be able to resolve sooner rather then later. Thanks!

Here's the actual code table:

Code:
  /// These values come from the NIST 2010 published values
  static struct { u32 StringId; wchar_t symbol[5]; HP_Real value; wchar_t unit[15]; } const constants[]={
    { SIDConstant_NA    ,L"NA"             ,HPREAL(+,602214129,23)      ,L"(1/mol)"      },
    { SIDConstant_k     ,L"k"              ,HPREAL(+,13806488,-23)      ,L"(J/K)"       },
    { SIDConstant_Vm    ,L"Vm"             ,HPREAL(+,22413968,1)        ,L"(l/mol)"      },
    { SIDConstant_R     ,L"R"              ,HPREAL(+,83144621,0)        ,L"(J/(mol*K))"    },
    { SIDConstant_StdT  ,L"StdT"           ,HPREAL(+,27315,2)           ,L"K"          },
    { SIDConstant_StdP  ,L"StdP"           ,HPREAL(+,101325,2)          ,L"kPa"        },

    { SIDConstant_Sigma ,L"\u03C3"         ,HPREAL(+,5670373,-8)        ,L"(W/(m^2*K^4))"    },
    { SIDConstant_c     ,L"c"              ,HPREAL(+,299792458,8)       ,L"(m/s)"        },
    { SIDConstant_e0    ,L"\u03B5\u2080"   ,HPREAL(+,885418781762,-12)  ,L"(F/m)"        },
    { SIDConstant_m0    ,L"\u03BC\u2080"   ,HPREAL(+,125663706144,-6)  ,L"(H/m)"        },
    { SIDConstant_g     ,L"g"              ,HPREAL(+,980665,0)          ,L"(m/(s^2))"       },
    { SIDConstant_G     ,L"G"              ,HPREAL(+,667384,-11)        ,L"(m^3/(s^2*kg))"   },

    { SIDConstant_h     ,L"h"              ,HPREAL(+,662606957,-34)     ,L"(J*s)"        },
    { SIDConstant_hBar  ,L"\u0127"           ,HPREAL(+,1054571726,-34)    ,L"(J*s)"        },
    { SIDConstant_q     ,L"q"              ,HPREAL(+,1602176565,-19)    ,L"C"          },
    { SIDConstant_me    ,L"me"             ,HPREAL(+,910938291,-31)     ,L"kg"         },
    { SIDConstant_qme   ,L"qme"            ,HPREAL(+,1758820088,11)     ,L"(C/kg)"       },
    { SIDConstant_mp    ,L"mp"             ,HPREAL(+,1672621777,-27)    ,L"kg"         },
    { SIDConstant_mpme  ,L"mpme"           ,HPREAL(+,183615267245,3)    ,NULL           },
    { SIDConstant_alpha ,L"\u03B1"         ,HPREAL(+,72973525698,-3)    ,NULL           },
    { SIDConstant_phi   ,L"\u03C6\u2080"   ,HPREAL(+,2067833758,-15)    ,L"Wb"         },
    { SIDConstant_F     ,L"F"              ,HPREAL(+,964853365,4)       ,L"(C/mol)"      },
    { SIDConstant_Rinf  ,L"R\u221E"        ,HPREAL(+,109737315685,7)   ,L"(1/m)"        },
    { SIDConstant_a0    ,L"a\u2080"        ,HPREAL(+,52917721092,-11)   ,L"m"         },
    { SIDConstant_mB    ,L"\u03BCB"        ,HPREAL(+,927400968,-24)     ,L"(J/T)"        },
    { SIDConstant_mN    ,L"\u03BCN"        ,HPREAL(+,505078353,-27)     ,L"(J/T)"        },
    { SIDConstant_l0    ,L"\u03BB\u2080"   ,HPREAL(+,123984192920,-6)   ,L"m"         },
    { SIDConstant_f0    ,L"f\u2080"        ,HPREAL(+,241798934961,14)   ,L"Hz"         },
    { SIDConstant_lc    ,L"\u03BBc"        ,HPREAL(+,24263102389,-12)   ,L"m"         } };

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Constants aren't so constant - Tim Wessman - 12-05-2016 03:26 PM
RE: Constants aren't so constant - sat1410 - 12-05-2016, 04:30 PM
RE: Constants aren't so constant - JMB - 12-05-2016, 05:21 PM
RE: Constants aren't so constant - JMB - 01-14-2018, 12:48 PM
RE: Constants aren't so constant - JimP - 01-15-2018, 04:12 AM
RE: Constants aren't so constant - pier4r - 01-15-2018, 03:46 PM
RE: Constants aren't so constant - JMB - 01-16-2018, 07:01 PM



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