Code Monkey home page Code Monkey logo

Comments (8)

giordano avatar giordano commented on August 25, 2024

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)

from physicalconstants.jl.

caseykneale avatar caseykneale commented on August 25, 2024

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 :)

from physicalconstants.jl.

8me avatar 8me commented on August 25, 2024

Is this issue still followed up?

from physicalconstants.jl.

giordano avatar giordano commented on August 25, 2024

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 😉

from physicalconstants.jl.

8me avatar 8me commented on August 25, 2024

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 ;-)

from physicalconstants.jl.

8me avatar 8me commented on August 25, 2024

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!

from physicalconstants.jl.

giordano avatar giordano commented on August 25, 2024

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

from physicalconstants.jl.

8me avatar 8me commented on August 25, 2024

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.

from physicalconstants.jl.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.