JJ / p6-math-constants

A few Mathematics and Physics constants
GNU General Public License v3.0
8 stars 11 forks source link
hacktoberfest math physics

Math::Constants .github/workflows/test.yaml

Raku.land badge

Math::Constants - A few constants defined in Raku

SYNOPSIS

#!/usr/bin/env raku

use Math::Constants;

say "We have ", phi, " ", plancks-h, " ",  plancks-reduced-h, " ", 
    c, " ", G, " and ", fine-structure-constant, " plus ",
    elementary-charge, " and ", vacuum-permittivity ;

say "And also  φ ", φ, " α ", α,  " ℎ ",  ℎ, " and ℏ ", ℏ,
    " with e ", e, " and ε0 ", ε0;

say "We are flying at speed ", .1c;

DESCRIPTION

Math::Constants is a collection of Math and Physics constants that will save you the trouble of defining them.

Constants included

Physical constants

All the physical constants have the CODATA 2018 recommended values. These reflect the new definitions of the kilogram and ampere as of 2019-05-20.

Mathematical constants

Units

"Units" can be used as suffix; the number will be multiplied by its value

Issues and suggestions

Please post them in GitHub. Pull requests are also welcome.

See also

Check out Physics::Constants for an extensive collection of objects that use the Physics ::Measure objects.

AUTHOR

COPYRIGHT AND LICENSE

Copyright 2016-2023 JJ Merelo

Copyright 2019 Kevin Pye

This library is free software; you can redistribute it and/or modify it under the GPL 3.0.