Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all constants of CODATA2014 #4

Open
Paalon opened this issue Oct 23, 2018 · 8 comments
Open

Add all constants of CODATA2014 #4

Paalon opened this issue Oct 23, 2018 · 8 comments

Comments

@Paalon
Copy link

Paalon commented Oct 23, 2018

module CODATA2014 lacks many constants
https://physics.nist.gov/cuu/Constants/Table/allascii.txt
They should be included.

@giordano
Copy link
Member

giordano commented Oct 23, 2018

Yeah, my goal is to eventually include all constants, but first I'd like to sort out how to best serve users (see issues #1 and #2)

@caseykneale
Copy link

One of my favorite constants that shows up from time to time is the impedance of free space :).
Z0 = 119.91698326550797 * pi
Units are in Ohms :)

@8me
Copy link

8me commented Jul 16, 2020

Is this issue still followed up?

@giordano
Copy link
Member

Not really because I don't think I found a good way to automatically dump the entire list of constants, but you're definitely welcome to contribute your favourite ones! Feel free to ask for help in case you need it 😉

@8me
Copy link

8me commented Jul 16, 2020

I think an automatic dump is not really necessary, because it's a fixed list which doesn't change on a daily basis. Once the values are defined the maintenance effort updating it to a new CODATA list should be manageable.
I think you will go for it with a PR the next few days ;-)

@8me
Copy link

8me commented Jul 16, 2020

I tried to define the vacuum impedance as @derived_constant, which looks like:
derived_constant(VacuumImpedance, Z_0, "Characteristic impedance of vacuum", 376.730_313_666_853_5, ustrip(big(µ_0) * big(c_0)), Ω, measurement(µ_0)*measurement(c_0), measurement(BigFloat, µ_0)*measurement(BigFloat, c_0), "CODATA 2018") but I always get an error w.r.t. to the uncertainties (5.696056702e-8 != 5.6960567020000004e-8).
Can you help me out, where my definition fails? Thanks!

@giordano
Copy link
Member

I've added Z_0 to CODATA 2018 in 03abe02 (not sure why I didn't include it initially 🤔). Note that CODATA 2018 doesn't define it as a derived constant: https://physics.nist.gov/cgi-bin/cuu/Value?z0

@8me
Copy link

8me commented Jul 19, 2020

Ok, thank you! I just thought this should be a derived constant, because it is defined as μ_0*c (which definition is also given in the CODATA18 table at pdf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants