staticdata.dev
Menu
Datasets About Contact

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.

v1.0.0 MIT 20 records Updated 2026-10-05 stable Source:  OEIS (Online Encyclopedia of Integer Sequences) / NIST DLMF

Quick fetch

Stable URL. CORS-enabled. No auth.

bash
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

    Open

    min: 4.5 KB · /v1/mathematical-constants.min.json

  • CSV 3.7 KB

    /v1/mathematical-constants.csv

    Open
  • TypeScript 5.4 KB

    /v1/mathematical-constants.ts

    export const mathematicalConstants

    type MathConstant = (typeof mathematicalConstants)[number]

    Open

Schema

Each record in the dataset has the following shape.

Schema
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.

Data preview
namesymbolvaluedescription
Piπ3.14159265358979323846264338327950288419716939937510Ratio of a circle's circumference to its diameter; appears throughout geometry, trigonometry, and analysis.
Euler's Numbere2.71828182845904523536028747135266249775724709369995Base of the natural logarithm; limit of (1 + 1/n)^n as n → ∞; fundamental to calculus and exponential growth.
Golden Ratioφ1.61803398874989484820458683436563811772030917980576Positive root of x² − x − 1 = 0; ratio such that (a+b)/a = a/b; appears in art, architecture, and nature.
Square Root of 2√21.41421356237309504880168872420969807856967187537694Length of the diagonal of a unit square; first number proven to be irrational (by ancient Greek mathematicians).
Square Root of 3√31.73205080756887729352744634150587236694280525381038Height of an equilateral triangle with side 2; appears in hexagonal geometry and trigonometry.
Square Root of 5√52.23606797749978969640917366873127623544061835961152Appears in the closed-form expression for the golden ratio: φ = (1 + √5) / 2.
Natural Logarithm of 2ln 20.69314718055994530941723212145817656807550013436025Logarithm base e of 2; related to the half-life formula and binary entropy; sum of the alternating harmonic series.
Natural Logarithm of 10ln 102.30258509299404568401799145468436420760110148862877Conversion factor between natural logarithms and common (base-10) logarithms: log₁₀(x) = ln(x) / ln(10).
Euler–Mascheroni Constantγ0.57721566490153286060651209008240243104215933593992Limit of the difference between the harmonic series and the natural logarithm; appears in number theory and analysis.
Apéry's Constantζ(3)1.20205690315959428539973816151144999076498629234049Value of the Riemann zeta function at 3; proven irrational by Roger Apéry in 1978; arises in quantum electrodynamics.

Showing 10 of 20. View full data:  JSON · CSV

Fetch examples

Drop-in snippets in five languages.

curl
curl -sSL https://staticdata.dev/v1/mathematical-constants.json | jq '.[0]'
JavaScript
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]);
Python
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])
Go
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])
}
Rust
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