Mathematical Constants
A curated reference of 20 well-known mathematical constants spanning geometry, analysis, number theory, and chaos theory. Each entry gives the common name, standard symbol, a decimal value to 50 decimal places, and a concise description of what the constant represents and where it arises.
Quick fetch
Stable URL. CORS-enabled. No auth.
curl https://staticdata.dev/v1/mathematical-constants.json
Or use as a typed import:
import { mathematicalConstants } from "https://staticdata.dev/v1/mathematical-constants.ts"
Formats
- JSON 5.1 KB
/v1/mathematical-constants.json
min: 4.5 KB · /v1/mathematical-constants.min.json
- CSV 3.7 KB
/v1/mathematical-constants.csv
- TypeScript 5.4 KB
/v1/mathematical-constants.ts
export const mathematicalConstants
type MathConstant = (typeof mathematicalConstants)[number]
Schema
Each record in the dataset has the following shape.
| Field | Type | Description | Example |
|---|---|---|---|
| name | string | Common English name of the constant | Pi |
| symbol | string | Standard mathematical symbol (Unicode) | π |
| value | string | Decimal value truncated (not rounded) to 50 decimal places | 3.14159265358979323846264338327950288419716939937510 |
| description | string | Plain-English description of the constant and its significance | Ratio of a circle's circumference to its diameter. |
Preview
First 10 records.
| name | symbol | value | description |
|---|---|---|---|
| Pi | π | 3.14159265358979323846264338327950288419716939937510 | Ratio of a circle's circumference to its diameter; appears throughout geometry, trigonometry, and analysis. |
| Euler's Number | e | 2.71828182845904523536028747135266249775724709369995 | Base of the natural logarithm; limit of (1 + 1/n)^n as n → ∞; fundamental to calculus and exponential growth. |
| Golden Ratio | φ | 1.61803398874989484820458683436563811772030917980576 | Positive root of x² − x − 1 = 0; ratio such that (a+b)/a = a/b; appears in art, architecture, and nature. |
| Square Root of 2 | √2 | 1.41421356237309504880168872420969807856967187537694 | Length of the diagonal of a unit square; first number proven to be irrational (by ancient Greek mathematicians). |
| Square Root of 3 | √3 | 1.73205080756887729352744634150587236694280525381038 | Height of an equilateral triangle with side 2; appears in hexagonal geometry and trigonometry. |
| Square Root of 5 | √5 | 2.23606797749978969640917366873127623544061835961152 | Appears in the closed-form expression for the golden ratio: φ = (1 + √5) / 2. |
| Natural Logarithm of 2 | ln 2 | 0.69314718055994530941723212145817656807550013436025 | Logarithm base e of 2; related to the half-life formula and binary entropy; sum of the alternating harmonic series. |
| Natural Logarithm of 10 | ln 10 | 2.30258509299404568401799145468436420760110148862877 | Conversion factor between natural logarithms and common (base-10) logarithms: log₁₀(x) = ln(x) / ln(10). |
| Euler–Mascheroni Constant | γ | 0.57721566490153286060651209008240243104215933593992 | Limit of the difference between the harmonic series and the natural logarithm; appears in number theory and analysis. |
| Apéry's Constant | ζ(3) | 1.20205690315959428539973816151144999076498629234049 | Value of the Riemann zeta function at 3; proven irrational by Roger Apéry in 1978; arises in quantum electrodynamics. |
Fetch examples
Drop-in snippets in five languages.
curl -sSL https://staticdata.dev/v1/mathematical-constants.json | jq '.[0]' import type { MathConstant } from "https://staticdata.dev/v1/mathematical-constants.ts";
const res = await fetch("https://staticdata.dev/v1/mathematical-constants.min.json");
if (!res.ok) throw new Error(`Fetch failed: ${res.status}`);
const mathematicalConstants: MathConstant[] = await res.json();
console.log(mathematicalConstants[0]); import urllib.request, json
with urllib.request.urlopen("https://staticdata.dev/v1/mathematical-constants.min.json") as r:
mathematicalConstants = json.load(r)
print(mathematicalConstants[0]) package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
resp, err := http.Get("https://staticdata.dev/v1/mathematical-constants.min.json")
if err != nil { panic(err) }
defer resp.Body.Close()
var data []map[string]any
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
panic(err)
}
fmt.Println(data[0])
} use serde_json::Value;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let body = ureq::get("https://staticdata.dev/v1/mathematical-constants.min.json").call()?.into_string()?;
let data: Vec<Value> = serde_json::from_str(&body)?;
println!("{:?}", data.first());
Ok(())
} Sources and methodology
This dataset provides 20 of the most important mathematical constants used across pure and applied mathematics. Values are given as strings, truncated (not rounded) to 50 decimal places, to preserve full precision without floating-point rounding. The set covers the most commonly referenced constants: transcendental numbers (π, e), algebraic irrationals (φ, √2, √3, √5), constants from analysis (γ, ζ(3), Catalan’s G), and constants from dynamical systems and number theory (Feigenbaum δ and α, Khinchin’s K₀, twin-prime constant C₂).
Numeric values were sourced from well-established references including the OEIS (Online Encyclopedia of Integer Sequences), the NIST Digital Library of Mathematical Functions (DLMF), and Wolfram MathWorld. All values have been cross-checked against at least two independent references. Descriptions aim to be concise yet mathematically informative, suitable for developer tooling, educational applications, and quick reference.
Note that for Catalan’s Constant and Gauss’s Constant the symbol G is shared by convention in different communities; each record’s name and description disambiguate them. The Feigenbaum constants and Khinchin’s constant are known numerically to high precision but no closed form in elementary functions is known.
Versioning
URLs under /v1/ are stable: field names and types will not change in a way
that breaks consumers. Values can be corrected or records added when the upstream source
changes; schema-incompatible updates ship under a new version path. See the
mathematical-constants changelog for this dataset's history.
More Code datasets
- ansi-colors
- ascii
- cron-presets
- css-at-rules
- css-functions
- css-named-colors
- css-properties
- css-pseudo-classes
- css-pseudo-elements
- css-units
- data-units
- exit-codes
- file-signatures
- hash-algorithms
- js-array-methods
- js-math-methods
- js-object-methods
- js-string-methods
- json-schema-keywords
- jwt-claims
- measurement-units
- node-builtin-modules
- owasp-top-10
- periodic-table
- physical-constants
- posix-signals
- programming-languages
- regex-flags
- regex-patterns
- roman-numerals
- si-base-units
- si-derived-units
- si-prefixes
- spdx-licenses
- strftime-tokens
- tailwind-colors
- time-units
- unicode-blocks
- unicode-general-categories
- unicode-planes
- unix-file-permissions
- xterm-256-colors