Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/meokullu/mathematicalconstants

Mathematical Constants is a library that offers mathematical constants up to one millions of digits.
https://github.com/meokullu/mathematicalconstants

constants math mathematical numbers

Last synced: about 2 months ago
JSON representation

Mathematical Constants is a library that offers mathematical constants up to one millions of digits.

Awesome Lists containing this project

README

        

## Mathematical Constants
[![MathematicalConstants](https://img.shields.io/nuget/v/MathematicalConstants.svg)](https://www.nuget.org/packages/MathematicalConstants/) [![CalculateETA](https://img.shields.io/nuget/dt/MathematicalConstants.svg)](https://www.nuget.org/packages/MathematicalConstants/) [![License](https://img.shields.io/github/license/meokullu/MathematicalConstants.svg)](https://github.com/meokullu/MathematicalConstants/blob/master/LICENSE)

Mathematical Constants is a library offers mathematical constants on string format. Currently 82 constants are available upto one million digit.

![MathematicalConstants](https://repository-images.githubusercontent.com/687945668/7b7abd90-3ba9-4b1b-8709-1a88a0eb28c1)

### Description
String formatted mathematical constants are presented with their Wikipedia link, oeis.org link and their source.

### How to download
Release: [Latest release](https://github.com/meokullu/MathematicalConstants/releases/latest)

[Download on NuGet gallery](https://www.nuget.org/packages/MathematicalConstants/)

.NET CLI:
```
dotnet add package MathematicalConstants
```

### Numbers

| Numbers | First digits | Wikipedia link | Oeis.org link | Source |
| -----------------------------:|:-------------:| -------------------------------------------------------------------------------------------------------------:| -----------------------------:| -----------------------------------------------------------------------------------------------------:|
| Phi | 1.6180 | [Golden Ratio](https://en.wikipedia.org/wiki/Golden_ratio) | https://oeis.org/A001622 | [Wikipedia](https://en.wikipedia.org/wiki/Golden_ratio) |
| Pi | 3.1414 | [Pi](https://en.wikipedia.org/wiki/Pi) | https://oeis.org/A000796 | [Wikipedia](https://en.wikipedia.org/wiki/Pi) |
| E | 2.7182 | [E](https://en.wikipedia.org/wiki/E_(mathematical_constant)) | https://oeis.org/A000796 | [Wikipedia](https://en.wikipedia.org/wiki/E_(mathematical_constant)) |
| Square root of Two. | 1.4142 | [Square root of 2](https://en.wikipedia.org/wiki/Square_root_of_2) | https://oeis.org/A002193 | [NASA](https://apod.nasa.gov/htmltest/gifcity/sqrt2.1mil) |
| Square root of Three. | 1.7320 | [Square root of 3](https://en.wikipedia.org/wiki/Square_root_of_3) | https://oeis.org/A002194 | [NASA](https://apod.nasa.gov/htmltest/gifcity/sqrt3.1mil) |
| Square root of Five. | 2.2360 | [Square root of 5](https://en.wikipedia.org/wiki/Square_root_of_5) | https://oeis.org/A002163 | [NASA](https://apod.nasa.gov/htmltest/gifcity/sqrt5.1mil) |
| Apery. | 1.2020 | [Apery](https://en.wikipedia.org/wiki/Ap%C3%A9ry%27s_constant) | https://oeis.org/A002117 | [Wikipedia](https://en.wikipedia.org/wiki/Ap%C3%A9ry%27s_constant) |
| Artin. | 0.3739 | [Artin](https://en.wikipedia.org/wiki/Artin%27s_conjecture_on_primitive_roots) | https://oeis.org/A005596 | [Wikipedia](https://en.wikipedia.org/wiki/Artin%27s_conjecture_on_primitive_roots) |
| Backhouse. | 1.4560 | [Backhouse](https://en.wikipedia.org/wiki/Backhouse%27s_constant) | https://oeis.org/A072508 | [Wikipedia](https://en.wikipedia.org/wiki/Backhouse%27s_constant) |
| Bernstein. | 0.2801 | [Bernstein](https://en.wikipedia.org/wiki/Bernstein%27s_constant) | https://oeis.org/A073001 | [Wikipedia](https://en.wikipedia.org/wiki/Bernstein%27s_constant) |
| Brun Twin Primes. | 1.9021 | [Brun Twin Primes.](https://en.wikipedia.org/wiki/Brun%27s_constant) | https://oeis.org/A065421 | [Wikipedia](https://en.wikipedia.org/wiki/Brun%27s_constant) |
| Cahen. | 0.6434 | [Cahen](https://en.wikipedia.org/wiki/Cahen%27s_constant) | https://oeis.org/A118227 | [Wikipedia](https://en.wikipedia.org/wiki/Cahen%27s_constant) |
| Catalan. | 0.9159 | [Catalan](https://en.wikipedia.org/wiki/Catalan%27s_constant) | https://oeis.org/A006752 | [Wikipedia](https://en.wikipedia.org/wiki/Catalan%27s_constant) |
| Champernowne. | 0.1234 | [Champernowne](https://en.wikipedia.org/wiki/Champernowne_constant) | https://oeis.org/A033307 | [Wikipedia](https://en.wikipedia.org/wiki/Champernowne_constant) |
| Conway. | 1.3035 | [Conway](https://en.wikipedia.org/wiki/Look-and-say_sequence#Growth_in_length) | https://oeis.org/A014715 | [Wikipedia](https://en.wikipedia.org/wiki/Look-and-say_sequence#Growth_in_length) |
| Copeland-Erdos. | 0.2357 | [Copeland-Erdos](https://en.wikipedia.org/wiki/Copeland%E2%80%93Erd%C5%91s_constant) | https://oeis.org/A033308 | [Wikipedia](https://en.wikipedia.org/wiki/Copeland%E2%80%93Erd%C5%91s_constant) |
| Cube root of Two. | 1.2599 | [Cube root of Two](https://en.wikipedia.org/wiki/Cube_root_of_2) | https://oeis.org/A002580 | [Wikipedia](https://en.wikipedia.org/wiki/Cube_root_of_2) |
| De Vicci Tesseract. | 1.0074 | [De Vicci Tesseract](https://en.wikipedia.org/wiki/Prince_Rupert%27s_cube#Generalizations) | https://oeis.org/A243309 | [Wikipedia](https://en.wikipedia.org/wiki/Prince_Rupert%27s_cube#Generalizations) |
| Dottie. | 0.7390 | [Dottie](https://en.wikipedia.org/wiki/Dottie_number) | https://oeis.org/A003957 | [Wikipedia](https://en.wikipedia.org/wiki/Dottie_number) |
| Erdos-Borwein. | 1.6066 | [Erdos-Borwein](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Borwein_constant) | https://oeis.org/A065442 | [Wikipedia](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Borwein_constant) |
| Erdos-Tenenbaum-Ford. | 0.8607 | [Erdos-Tenenbaum-Ford](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Tenenbaum%E2%80%93Ford_constan) | https://oeis.org/A074738 | [Wikipedia](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Tenenbaum%E2%80%93Ford_constan) |
| Euler-Mascheorni. | 0.5772 | [Euler-Mascheorni](https://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_constant) | https://oeis.org/A001620 | [Wikipedia](https://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_constant) |
| Feigenbaum. | 2.5029 | [Feigenbaum](https://en.wikipedia.org/wiki/Feigenbaum_constant) | https://oeis.org/A006891 | [Wikipedia](https://en.wikipedia.org/wiki/Feigenbaum_constant) |
| Feigenbaum2. | 4.6692 | [Feigenbaum2](https://en.wikipedia.org/wiki/Feigenbaum_constant) | https://oeis.org/A006890 | [Wikipedia](https://en.wikipedia.org/wiki/Feigenbaum_constant) |
| Feller-Tornier. | 0.6613 | [Feller-Tornier](https://en.wikipedia.org/wiki/Feller%E2%80%93Tornier_constant) | https://oeis.org/A065493 | [Wikipedia](https://en.wikipedia.org/wiki/Feller%E2%80%93Tornier_constant) |
| Foias. | 1.1874 | [Foias](https://en.wikipedia.org/wiki/Foias_constant) | https://oeis.org/A085848 | [Wikipedia](https://en.wikipedia.org/wiki/Foias_constant) |
| Fransen-Robinson. | 2.8077 | [Fransen-Robinson](https://en.wikipedia.org/wiki/Frans%C3%A9n%E2%80%93Robinson_constant) | https://oeis.org/A058655 | [Wikipedia](https://en.wikipedia.org/wiki/Frans%C3%A9n%E2%80%93Robinson_constant) |
| Gauss. | 0.8346 | [Gauss](https://en.wikipedia.org/wiki/Gauss%27s_constant) | https://oeis.org/A014549 | [Wikipedia](https://en.wikipedia.org/wiki/Gauss%27s_constant) |
| Gelfond-Schneider. | 2.6651 | [Gelfond-Schneider](https://en.wikipedia.org/wiki/Gelfond%27s_constant) | https://oeis.org/A07507 | [Wikipedia](https://en.wikipedia.org/wiki/Gelfond%27s_constant) |
| Gieseking. | 1.0149 | [Gieseking](https://de.wikipedia.org/wiki/Gieseking-Konstante) | https://oeis.org/A143298 | [Wikipedia](https://de.wikipedia.org/wiki/Gieseking-Konstante) |
| Golden Angle. | 2.3999 | [Golden Angle](https://en.wikipedia.org/wiki/Golden_angle) | https://oeis.org/A131988 | [Wikipedia](https://en.wikipedia.org/wiki/Golden_angle) |
| Golomb-Dickman. | 0.6243 | [Golomb-Dickman](https://en.wikipedia.org/wiki/Golomb%E2%80%93Dickman_constant) | https://oeis.org/A084945 | [Wikipedia](https://en.wikipedia.org/wiki/Golomb%E2%80%93Dickman_constant) |
| Glaishert-Kinkelin. | 1.2824 | [Glaishert-Kinkelin](https://en.wikipedia.org/wiki/Glaisher%E2%80%93Kinkelin_constant) | https://oeis.org/A074962 | [Wikipedia](https://en.wikipedia.org/wiki/Glaisher%E2%80%93Kinkelin_constant) |
| Gombertz. | 0.5963 | [Gombertz](https://en.wikipedia.org/wiki/Gompertz_constant) | https://oeis.org/A118228 | [Wikipedia](https://en.wikipedia.org/wiki/Gompertz_constant) |
| Hafner-Sarnak-McCurley. | 0.3532 | [Hafner-Sarnak-McCurley](https://en.wikipedia.org/wiki/Hafner%E2%80%93Sarnak%E2%80%93McCurley_constant) | https://oeis.org/A085849 | [Wikipedia](https://en.wikipedia.org/wiki/Hafner%E2%80%93Sarnak%E2%80%93McCurley_constant) |
| Heath-Brown-Moroz. | 0.3532 | [Heath-Brown-Moroz](https://en.wikipedia.org/wiki/Heath-Brown%E2%80%93Moroz_constant) | https://oeis.org/A118228 | [Wikipedia](https://en.wikipedia.org/wiki/Heath-Brown%E2%80%93Moroz_constant) |
| Kepler-Bouwkamp. | 0.1149 | [Kepler-Bouwkamp](https://en.wikipedia.org/wiki/Kepler%E2%80%93Bouwkamp_constant) | https://oeis.org/A085365 | [Wikipedia](https://en.wikipedia.org/wiki/Kepler%E2%80%93Bouwkamp_constant) |
| Khincin. | 2.6854 | [Khincin](https://en.wikipedia.org/wiki/Khinchin%27s_constant) | https://oeis.org/A002210 | [Wikipedia](https://en.wikipedia.org/wiki/Khinchin%27s_constant) |
| Komornik-Loreti. | 1.7872 | [Komornik-Loreti](https://en.wikipedia.org/wiki/Komornik%E2%80%93Loreti_constant) | https://oeis.org/A055060 | [Wikipedia](https://en.wikipedia.org/wiki/Komornik%E2%80%93Loreti_constant) |
| Landau-Ramanujan. | 0.7642 | [Landau-Ramanujan](https://en.wikipedia.org/wiki/Landau%E2%80%93Ramanujan_constant) | https://oeis.org/A064533 | [Wikipedia](https://en.wikipedia.org/wiki/Landau%E2%80%93Ramanujan_constant) |
| Laplace limit. | 0.6627 | [Laplace limit](https://en.wikipedia.org/wiki/Laplace_limit) | https://oeis.org/A033259 | [Wikipedia](https://en.wikipedia.org/wiki/Laplace_limit) |
| Levy. | 1.1865 | [Levy](https://en.wikipedia.org/wiki/L%C3%A9vy%27s_constant) | https://oeis.org/A100199 | [Wikipedia](https://en.wikipedia.org/wiki/L%C3%A9vy%27s_constant) |
| Levy2. | 3.2758 | [Levy](https://en.wikipedia.org/wiki/L%C3%A9vy%27s_constant) | https://oeis.org/A086702 | [Wikipedia](https://en.wikipedia.org/wiki/L%C3%A9vy%27s_constant) |
| Liebs Square Ice. | 1.5396 | [Liebs Square Ice](https://en.wikipedia.org/wiki/Lieb%27s_square_ice_constant) | https://oeis.org/A118273 | [Wikipedia](https://en.wikipedia.org/wiki/Lieb%27s_square_ice_constant) |
| Lochs. | 0.9702 | [Lochs](https://en.wikipedia.org/wiki/Lochs%27_theorem) | https://oeis.org/A086819 | [Wikipedia](https://en.wikipedia.org/wiki/Lochs%27_theorem) |
| Magic angle. | 0.9553 | [Magic angle](https://en.wikipedia.org/wiki/Magic_angle) | https://oeis.org/A195696 | [Wikipedia](https://en.wikipedia.org/wiki/Magic_angle) |
| Meissel-Mertens. | 0.2614 | [Meissel-Mertens](https://en.wikipedia.org/wiki/Meissel%E2%80%93Mertens_constant) | https://oeis.org/A077761 | [Wikipedia](https://en.wikipedia.org/wiki/Meissel%E2%80%93Mertens_constant) |
| Mills. | 1.3063 | [Mills](https://en.wikipedia.org/wiki/Mills%27_constant) | https://oeis.org/A051021 | [Wikipedia](https://en.wikipedia.org/wiki/Mills%27_constant) |
| MRB Marvin Ray Burns. | 0.1878 | [MRB Marvin Ray Burns](https://en.wikipedia.org/wiki/MRB_constant) | https://oeis.org/A037077 | [Wikipedia](https://en.wikipedia.org/wiki/MRB_constant) |
| Natural logarithm of Two. | 0.6931 | [Natural logarithm of Two](https://en.wikipedia.org/wiki/Natural_logarithm_of_2) | https://oeis.org/A002162 | [Wikipedia](https://en.wikipedia.org/wiki/Natural_logarithm_of_2) |
| Niven. | 1.7052 | [Niven](https://en.wikipedia.org/wiki/Niven%27s_constant) | https://oeis.org/A033150 | [Wikipedia](https://en.wikipedia.org/wiki/Niven%27s_constant) |
| Omega. | 0.5671 | [Omega](https://en.wikipedia.org/wiki/Omega_constant) | https://oeis.org/A030178 | [Wikipedia](https://en.wikipedia.org/wiki/Omega_constant) |
| Plastic. | 1.3247 | [Plastic](https://en.wikipedia.org/wiki/Plastic_number) | https://oeis.org/A060006 | [Wikipedia](https://en.wikipedia.org/wiki/Plastic_number) |
| Porter. | 1.4670 | [Porter](https://en.wikipedia.org/wiki/Porter%27s_constant) | https://oeis.org/A086237 | [Wikipedia](https://en.wikipedia.org/wiki/Porter%27s_constant) |
| Prime. | 0.4146 | [Prime](https://en.wikipedia.org/wiki/Prime_constant) | https://oeis.org/A051006 | [Wikipedia](https://en.wikipedia.org/wiki/Prime_constant) |
| Prohuet-Thue-Morse | 0.4124 | [Prohuet-Thue-Morse](https://en.wikipedia.org/wiki/Prouhet%E2%80%93Thue%E2%80%93Morse_constant) | https://oeis.org/A014571 | [Wikipedia](https://en.wikipedia.org/wiki/Prouhet%E2%80%93Thue%E2%80%93Morse_constant) |
| Ramanujan-Soldner. | 1.4513 | [Ramanujan-Soldner](https://en.wikipedia.org/wiki/Ramanujan%E2%80%93Soldner_constant) | https://oeis.org/A070769 | [Wikipedia](https://en.wikipedia.org/wiki/Ramanujan%E2%80%93Soldner_constant) |
| Reciporocal Fibonacci. | 3.3598 | [Reciporocal Fibonacci](https://en.wikipedia.org/wiki/Reciprocal_Fibonacci_constant) | https://oeis.org/A079586 | [Wikipedia](https://en.wikipedia.org/wiki/Reciprocal_Fibonacci_constant) |
| Robbins. | 0.6617 | [Robbins](https://en.wikipedia.org/wiki/Robbins_constant) | https://oeis.org/A073012 | [Wikipedia](https://en.wikipedia.org/wiki/Robbins_constant) |
| Salem. | 1.1762 | [Salem](https://en.wikipedia.org/wiki/Salem_number) | https://oeis.org/A073011 | [Wikipedia](https://en.wikipedia.org/wiki/Salem_number) |
| Samos Quadratic Recurrence. | 1.6616 | [Samos Quadratic Recurrence](https://en.wikipedia.org/wiki/Somos%27_quadratic_recurrence_constant) | https://oeis.org/A112302 | [Wikipedia](https://en.wikipedia.org/wiki/Somos%27_quadratic_recurrence_constant) |
| Second Du Bois Reymond. | 0.1945 | [Second Du Bois Reymond](https://es.wikipedia.org/wiki/Constante_Du_Bois_Reymond) | https://oeis.org/A062546 | [Wikipedia](https://es.wikipedia.org/wiki/Constante_Du_Bois_Reymond) |
| Second Favard. | 1.2337 | [Second Favard](https://en.wikipedia.org/wiki/Favard_constant) | https://oeis.org/A111003 | [Wikipedia](https://en.wikipedia.org/wiki/Favard_constant) |
| Second Hermite. | 1.1547 | [Second Hermite](https://en.wikipedia.org/wiki/Hermite_constant) | https://oeis.org/A246724 | [Wikipedia](https://en.wikipedia.org/wiki/Hermite_constant) |
| Sierpinski. | 2.5849 | [Sierpinski](https://en.wikipedia.org/wiki/Sierpi%C5%84ski%27s_constant) | https://oeis.org/A062089 | [Wikipedia](https://en.wikipedia.org/wiki/Sierpi%C5%84ski%27s_constant) |
| Silver ratio. | 2.4142 | [Silver ratio](https://en.wikipedia.org/wiki/Silver_ratio) | https://oeis.org/A014176 | [Wikipedia](https://en.wikipedia.org/wiki/Silver_ratio) |
| Super Golden Ratio. | 1.4655 | [Super Golden Ratio](https://en.wikipedia.org/wiki/Supergolden_ratio) | https://oeis.org/A092526 | [Wikipedia](https://en.wikipedia.org/wiki/Supergolden_ratio) |
| Tau. | 6.2831 | [Tau](https://en.wikipedia.org/wiki/Tau_(mathematical_constant)) | https://oeis.org/A019692 | [Wikipedia](https://en.wikipedia.org/wiki/Tau_(mathematical_constant)) |
| Tribonacci. | 1.8392 | [Tribonacci](https://en.wikipedia.org/wiki/Generalizations_of_Fibonacci_numbers#Tribonacci_numbers) | https://oeis.org/A058265 | [Wikipedia](https://en.wikipedia.org/wiki/Generalizations_of_Fibonacci_numbers#Tribonacci_numbers) |
| Twelft root of two. | 1.0594 | [Twelft root of two](https://en.wikipedia.org/wiki/Twelfth_root_of_2) | https://oeis.org/A010774 | [Wikipedia](https://en.wikipedia.org/wiki/Twelfth_root_of_2) |
| Twin prime. | 0.6601 | [Twin prime](https://en.wikipedia.org/wiki/Twin_prime_conjecture) | https://oeis.org/A005597 | [Wikipedia](https://en.wikipedia.org/wiki/Twin_prime_conjecture) |
| Universal parabolic. | 2.2955 | [Universal parabolic](https://en.wikipedia.org/wiki/Universal_parabolic_constant) | https://oeis.org/A103710 | [Wikipedia](https://en.wikipedia.org/wiki/Universal_parabolic_constant) |
| Viswanath. | 1.1319 | [Viswanath](https://en.wikipedia.org/wiki/Random_Fibonacci_sequence) | https://oeis.org/A078416 | [Wikipedia](https://en.wikipedia.org/wiki/Random_Fibonacci_sequence) |
| Wallis | 2.0945 | [Wallis](https://en.wikipedia.org/wiki/John_Wallis) | https://oeis.org/A007493 | [Wikipedia](https://en.wikipedia.org/wiki/John_Wallis) |
| Weierstrass | 0.4749 | [Weierstrass](https://en.wikipedia.org/wiki/Weierstrass) | https://oeis.org/A094692 | [Wikipedia](https://en.wikipedia.org/wiki/Weierstrass) |

### Example Usage
```
ToDouble(PiNumber, 0, 5); // returns 3.1415
```

```
ToInt32(ENumber, 1, 7); // return 71828 (from 2.71828...)
```

```
ToInt64(PhiNumber, 1, 10); // return 618033988 (from 1618033988...)
```

### Version History
See [Changelog](https://github.com/meokullu/MathematicalConstants/blob/master/CHANGELOG.md)

### Task list
* Create an issue or check task list: [Issues](https://github.com/meokullu/MathematicalConstants/issues)

### Licence
This repository is licensed under the "MIT" license. See [MIT license](https://github.com/meokullu/MathematicalConstants/blob/master/LICENSE).

### Authors & Contributing

If you'd like to contribute, then contribute. [contributing guide](https://github.com/meokullu/MathematicalConstants/blob/master/CONTRIBUTING.md).

[![Contributors](https://contrib.rocks/image?repo=meokullu/MathematicalConstants)](https://github.com/meokullu/MathematicalConstants/graphs/contributors)

### Help
Twitter: Enes Okullu [@enesokullu](https://twitter.com/EnesOkullu)