{"id":15688031,"url":"https://github.com/jj/p6-math-constants","last_synced_at":"2025-05-07T20:10:13.008Z","repository":{"id":15161482,"uuid":"77670701","full_name":"JJ/p6-math-constants","owner":"JJ","description":"A few Mathematics and Physics constants","archived":false,"fork":false,"pushed_at":"2023-10-18T06:05:28.000Z","size":113,"stargazers_count":8,"open_issues_count":2,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T20:10:08.080Z","etag":null,"topics":["hacktoberfest","math","physics"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JJ.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-30T07:51:55.000Z","updated_at":"2022-11-27T08:58:47.000Z","dependencies_parsed_at":"2024-10-09T13:45:10.273Z","dependency_job_id":null,"html_url":"https://github.com/JJ/p6-math-constants","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJ%2Fp6-math-constants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJ%2Fp6-math-constants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJ%2Fp6-math-constants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JJ%2Fp6-math-constants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JJ","download_url":"https://codeload.github.com/JJ/p6-math-constants/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949279,"owners_count":21830152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","math","physics"],"created_at":"2024-10-03T17:53:37.676Z","updated_at":"2025-05-07T20:10:12.945Z","avatar_url":"https://github.com/JJ.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"Math::Constants [![.github/workflows/test.yaml](https://github.com/JJ/p6-math-constants/actions/workflows/test.yaml/badge.svg)](https://github.com/JJ/p6-math-constants/actions/workflows/test.yaml)\n===============\n\n[![Raku.land badge](https://raku.land/zef:jjmerelo/Math::Constants/badges/version)](https://raku.land/zef:jjmerelo/Math::Constants)\n\nMath::Constants - A few constants defined in Raku\n\nSYNOPSIS\n========\n\n```raku\n#!/usr/bin/env raku\n\nuse Math::Constants;\n\nsay \"We have \", phi, \" \", plancks-h, \" \",  plancks-reduced-h, \" \", \n    c, \" \", G, \" and \", fine-structure-constant, \" plus \",\n    elementary-charge, \" and \", vacuum-permittivity ;\n\t\nsay \"And also  φ \", φ, \" α \", α,  \" ℎ \",  ℎ, \" and ℏ \", ℏ,\n    \" with e \", e, \" and ε0 \", ε0;\n\nsay \"We are flying at speed \", .1c;\n```\n\nDESCRIPTION\n===========\n\nMath::Constants is a collection of Math and Physics constants that will save you the trouble of defining them.\n\nConstants included\n------------------\n\n### Physical constants\n\nAll the physical constants have the [CODATA 2018](https://www.nist.gov/publications/codata-recommended-values-fundamental-physical-constants-2018) recommended values. These\n reflect the new definitions of the kilogram and ampere as of 2019-05-20.\n\n  * [Gravitational constant](https://en.wikipedia.org/wiki/Gravitational_constant) as `gravitation-constant` and `G`.\n\n  * [Speed of light](https://en.wikipedia.org/wiki/Speed_of_light) as `speed-of-light-vacuum` and `c`. It works also as a suffix for expressing speeds, as in `3c` for 3 times the speed of light. \n\n  * [Planck constant and reduced constant](https://en.wikipedia.org/wiki/Planck_constant) in J/s as `plancks-h` or `ℎ` and `plancks-reduced-h` or `ℏ`.\n\n  * [Boltzmann constant](https://en.wikipedia.org/wiki/Boltzmann_constant) as `boltzmann-constant` or `k`. Previous versions of Math::Constants had this in eV. The value is now in standard SI units. The eV postfix operator can be used to get the previous value if needed.\n\n  * [Coulomb constant](https://en.wikipedia.org/wiki/Coulomb_constant) as `coulomb-constant` or `K0`.\n\n  * [Mass of an electron](https://en.wikipedia.org/wiki/Electron) as `electron-mass`.\n\n  * [Electron volt](https://en.wikipedia.org/wiki/Electronvolt) as `electron-volt` and `eV` or as an operator.\n\n  * [Elementary charge](https://en.wikipedia.org/wiki/Elementary_charge) as `elementary-charge` or `q`.\n\n  * [Faraday constant](https://en.wikipedia.org/wiki/Faraday_constant) as `faraday-constant` or `F`.\n\n  * [The fine structure constant](https://en.wikipedia.org/wiki/Fine_structure) as `fine-structure-constant` or `α`.\n\n  * [Gas constant](https://en.wikipedia.org/wiki/Gas_constant) as `gas-constant` or `R`.\n\n  * [Avogadro's constant](https://en.wikipedia.org/wiki/Avogadro_constant) as `avogadro-constant` or `L`.\n\n  * [Vacuum magnetic permeability](https://en.wikipedia.org/wiki/Vacuum_permeability) as `magnetic-permeability` or `μ0`.\n\n  * [Mass of a neutron](https://en.wikipedia.org/wiki/Neutron) as `neutron-mass`.\n\n  * [Planck length](https://en.wikipedia.org/wiki/Planck_length) as `planck-length` or `lp`.\n\n  * [Planck mass](https://en.wikipedia.org/wiki/Planck_mass) as `planck-mass` or `mp`.\n\n  * [Planck temperature](https://en.wikipedia.org/wiki/Planck_temperature) as `planck-temperature` or `Tp`.\n\n  * [Planck time](https://en.wikipedia.org/wiki/Planck_time) as `planck-time` or `tp`.\n\n  * [Mass of a proton](https://en.wikipedia.org/wiki/Proton) as `proton-mass`.\n\n  * The quantum ratio (elementary charge / Planck constant) as `quantum-ratio`.\n\n  * [Standard acceleration due to gravity](https://en.wikipedia.org/wiki/Standard_gravity) as `standard-acceleration-gravity` or `g`.\n\n  * [Vacuum electrical permittivity](https://en.wikipedia.org/wiki/Vacuum_permittivity) as `vacuum-permittivity` or `ε0`.\n\n### Mathematical constants\n\n  * [Golden ratio](https://en.wikipedia.org/wiki/Golden_ratio) as `phi` or `φ`.\n\n  * [Feigenbaum constants](https://en.wikipedia.org/wiki/Feigenbaum_constants) as `alpha-feigenbaum-constant` and `delta-feigenbaum-constant` or `δ`.\n\n  * [Apéry's constant](https://en.wikipedia.org/wiki/Ap%C3%A9ry%27s_constant) as `apery-constant`.\n\n  * [Conway's constant](https://en.wikipedia.org/wiki/Look-and-say_sequence#Growth_in_length) as `conway-constant` and `λ`.\n\n  * [Khinchin's constant](https://en.wikipedia.org/wiki/Khinchin%27s_constant) as `khinchin-constant` and `k0`.\n\n  * [Glaisher–Kinkelin constant](https://en.wikipedia.org/wiki/Glaisher%E2%80%93Kinkelin_constant) as `glaisher-kinkelin-constant` and `A`.\n\n  * [Golomb–Dickman constant](https://en.wikipedia.org/wiki/Golomb%E2%80%93Dickman_constant) as `golomb-dickman-constant`. \n\n  * [Catalan's constant](https://en.wikipedia.org/wiki/Catalan%27s_constant) as `catalan-constant`. \n\n  * [Mill's constant](https://en.wikipedia.org/wiki/Mills%27_constant) as `mill-constant`. \n\n  * [Gauss's constant](https://en.wikipedia.org/wiki/Gauss%27s_constant) as `gauss-constant`. \n\n  * [Euler–Mascheroni constant](https://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_constant) as `euler-mascheroni-gamma` and `γ`. \n\n  * [Sierpiński's constant](https://en.wikipedia.org/wiki/Sierpi%C5%84ski%27s_constant) as `sierpinski-gamma` and `K`. \n  \n  * [iⁱ](https://oeis.org/A049006)\n  * [ζ(2)](https://oeis.org/A013661)\n\n### Units\n\n\"Units\" can be used as suffix; the number will be multiplied by its value\n\n * `eV`, or electron-volts; `1.3eV` is 1.3 divided by the `eV` constant value.\n * `c`, speed of light.\n * `g`, gravitational constant.\n\nIssues and suggestions\n======================\n\nPlease post them [in GitHub](https://github.com/JJ/p6-math-constants/issues\n). Pull requests are also welcome.\n\nSee also\n========\n\nCheck out [Physics::Constants](https://raku.land/zef:librasteve/Physics\n::Constants) for an extensive collection of objects that use the [Physics\n::Measure](https://github.com/librasteve/raku-Physics-Measure) objects.\n\nAUTHOR\n======\n\n* JJ Merelo \u003cjjmerelo@gmail.com\u003e\n\n* Kevin Pye \u003cKevin.Pye@gmail.com\u003e\n\n* [`librasteve`](https://github.com/librasteve)\n\nCOPYRIGHT AND LICENSE\n=====================\n\nCopyright 2016-2023 JJ Merelo\n\nCopyright 2019 Kevin Pye\n\nThis library is free software; you can redistribute it and/or modify it under the GPL 3.0.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjj%2Fp6-math-constants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjj%2Fp6-math-constants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjj%2Fp6-math-constants/lists"}