jj / p6-math-constants Goto Github PK
View Code? Open in Web Editor NEWA few Mathematics and Physics constants
License: GNU General Public License v3.0
A few Mathematics and Physics constants
License: GNU General Public License v3.0
it would be good for a browsing user to easily see what constants are defined
Dear JJ, I see that you write this in your excellent module:
[in Math::Constants]
my constant plancks-h is export = 6.626_070_015e-34; # exact
In my world (https://github.com/p6steve/raku-Physics-Measure/blob/master/README.md) I would write:
use Physics::Measure;
my $h
say ~($h * 1e34); #6.626 J/s
say $h.WHAT; #(Power)
I am trying to avoid hard coding the physical constants into Physics::Measure since Math::Constants already does a much better job!
I have in mind conceptually::
0. A new raku module - lets say Physics::Constants, it does...
I attach a suggested an informal object mapping diagram - red is Physic::Measure, green is Math::Constant, purple is my new module suggestion.
Please let me know if this makes any sense and you are open to the idea? If so, I am happy to code this up, test and submit - really as you decide.
kind regards
p6steve
Add a mathematical or physical constant with its corresponding test.
The module superfluously defines e and pi, and in the case of pi has an incorrect value!
Since 2019-05-20, planck's constant and the electron charge have defined values, different to those in this module. According to Wikipedia, the new values are 6.626_070_15e-34 and 1.602_176_634e-19 respectively.
Since that effectively redefines the meter and the ampere, this may have side-effects for other constants. (The obvious one is Planck's reduced constant.)
So called alpha
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.