An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Math Fest [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/math-fest/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/math-fest)

A collection of mathematical constants.

[![NPM Badge](https://nodei.co/npm/math-fest.png)](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