Math::Constants
Math::Constants - A few constants defined in Perl6
SYNOPSIS
#!/usr/bin/env perl6
use v6;
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
- Gravitational constant as
G
. - Speed of light as
c
. It works also as a suffix for expressing speeds, as in3c
for 3 times the speed of light. - Planck constant and reduced constant
in J/s
as
plancks-h
orℎ
andplancks-reduced-h
orℏ
. - Golden ratio as
phi
or φ. - Several electronic constants: α and the elementary charge and vacuum permittivity.
- Feigenbaum constants as
alpha-feigenbaum-constant
anddelta-feigenbaum-constant
. - Apéry's constant as
apery-constant
. - Conway's constant as
conway-constant
andλ
. - Khinchin's constant as
khinchin-constant
andk0
. - Glaisher–Kinkelin constant as
glaisher-kinkelin-constant
andA
. - Golomb–Dickman constant as
golomb-dickman-constant
. - Catalan's constant as
catalan-constant
. - Mill's constant as
mill-constant
. - Gauss's constant as
gauss-constant
. - Euler–Mascheroni constant as
euler-mascheroni-gamma
andγ
. - Sierpiński's constant as
sierpinski-gamma
andk
.
Issues and suggestions
Please post them in GitHub. Pull requests are also welcome.
AUTHOR
JJ Merelo jjmerelo@gmail.com
COPYRIGHT AND LICENSE
Copyright 2016 JJ Merelo
This library is free software; you can redistribute it and/or modify it under the GPL 3.0.