Comments (8)
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.
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.
Is this issue still followed up?
from physicalconstants.jl.
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.
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.
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.
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.
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)
- Export all constants? HOT 27
- Unexpected error in runtime: StackOverflowError() HOT 8
- Faster compile times with UnitSystems.jl HOT 2
- Automatic conversion of Constant to Quantity HOT 6
- how to extract the numerical part from a physical constant HOT 1
- TagBot trigger issue HOT 2
- Unable to install on fresh julia 1.6/1.7 installs HOT 5
- Numeric value of constants
- 3 argument show should probably be used instead of 2 args
- Version tag HOT 6
- Add CODATA2018 HOT 5
- Fine structure constant is not usable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from physicalconstants.jl.