https://github.com/richienb/math-fest
A collection of mathematical constants.
https://github.com/richienb/math-fest
Last synced: 10 months ago
JSON representation
A collection of mathematical constants.
- Host: GitHub
- URL: https://github.com/richienb/math-fest
- Owner: Richienb
- License: mit
- Created: 2020-02-11T08:07:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-14T05:18:36.000Z (over 4 years ago)
- Last Synced: 2025-01-17T20:13:57.708Z (12 months ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Math Fest [](https://travis-ci.com/Richienb/math-fest)
A collection of mathematical constants.
[](https://npmjs.com/package/math-fest)
## Install
```sh
npm install math-fest
```
## Usage
```js
const { pi, e, golden } = require("math-fest");
console.log(pi);
//=> 3.141592653589793
console.log(e);
//=> 2.718281828459045
console.log(golden);
//=> 1.618033988749895
```
## API - Available constants
- `pi` - Archimedes' constant
- `e` - Euler's number
- `root2` - Pythagoras' constant √2
- `a` - The Feigenbaum constant α
- `o` - The Feigenbaum constant δ
- `ay` - Apéry's constant
- `golden` - The golden ratio
- `em` - The Euler–Mascheroni constant
- `cw` - Conway's constant
- `kh` - Khinchin's constant
- `gk` - The Glaisher–Kinkelin constant
- `ch` - Chaitin's constant