Reference

Math & engineering notation

Look up symbols, units, probability, vectors and engineering formulas.

Scope and conventions

Common mathematical and engineering notation, with domains, units and assumptions. Estimates and idealized models are labeled; check their assumptions against the system you are describing.

Symbols & algebra

Read comparison and approximation symbols

Notation & units

≤ / ≥ include equality. ≠ means unequal. ≈ means approximately equal; it does not specify an error bound by itself.

Fragment

Notation & units · Read comparison and approximation symbols
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
x ≤ y   x is at most y
x ≥ y   x is at least y
x ≠ y   x differs from y
x ≈ y   x is approximately y

Read set membership and set operations

Notation & units

A set has distinct elements. ∈ means membership; ⊆ means subset. Union includes either set; intersection includes both.

Fragment

Notation & units · Read set membership and set operations
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
x ∈ A      x belongs to A
A ⊆ B      every member of A belongs to B
A ∪ B      union
A ∩ B      intersection
A \ B      in A but not B
∅          empty set

Read logical notation

Notation & units

∧ means and, ∨ means inclusive or, ¬ means not. An implication is false only when its premise is true and conclusion false.

Fragment

Notation & units · Read logical notation
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
P ∧ Q      both
P ∨ Q      at least one
¬P         not P
P ⇒ Q      if P then Q
P ⇔ Q      each implies the other
∀x         for every x
∃x         there exists x

Expand a sum or product

Notation & units

The index changes from the lower to upper bound, inclusive. A different indexing convention changes the number of terms.

Fragment

Notation & units · Expand a sum or product
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
Σ(i=1..n) xᵢ = x₁ + x₂ + ... + xₙ
Π(i=1..n) xᵢ = x₁ × x₂ × ... × xₙ
Σ(i=1..n) i = n(n+1)/2

The last identity assumes a positive integer n.

Read ranges, floor and ceiling

Notation & units

A square interval bracket includes an endpoint; a round one excludes it. Floor rounds toward negative infinity; ceiling toward positive infinity.

Fragment

Notation & units · Read ranges, floor and ceiling
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
[a,b)     a ≤ x < b
⌊2.7⌋ = 2       ⌊-2.7⌋ = -3
⌈2.7⌉ = 3       ⌈-2.7⌉ = -2

Magnitude and distance on a line

Notation & units

|x| is distance from zero. |a-b| measures distance between real values regardless of direction.

Fragment

Notation & units · Magnitude and distance on a line
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
|-3| = 3
|a-b| < ε  means the absolute error is below ε

For vectors, ||x|| denotes a norm; the chosen norm must be defined.

Quotient, remainder and wraparound

Notation & units

Integer division and remainder depend on the language’s rounding rule for negative operands. Mathematical modulo often chooses a nonnegative representative for a positive modulus.

Fragment

Notation & units · Quotient, remainder and wraparound
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
17 = 3 × 5 + 2
17 mod 5 = 2
clock index = (index + step) mod capacity

For negative values, verify the native language’s % semantics before using it as mathematical modulo.

Recognize number domains

Notation & units

Symbols identify sets of values. Natural-number conventions differ on whether zero is included; state the convention when it matters.

Fragment

Notation & units · Recognize number domains
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
ℕ  natural numbers (convention may include 0)
ℤ  integers
ℚ  rational numbers a/b, b ≠ 0
ℝ  real numbers
ℂ  complex numbers

Count a set or define a relationship

Notation & units

For a finite set, |S| is its number of members. := or ≔ commonly means “is defined as”; ∝ means proportional to, with context specifying the constant and domain.

Fragment

Notation & units · Count a set or define a relationship
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
|{red, blue}| = 2
f(x) := x²
y ∝ x means y = kx for a fixed k

The same vertical bars can mean absolute value; identify whether the operand is a number or a set.

Read a function, composition and inverse

Notation & units

f:X→Y maps each element of domain X to one element of codomain Y. Composition applies the rightmost function first. An inverse function on the stated sets requires a bijection.

Fragment

Notation & units · Read a function, composition and inverse
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
f: X → Y
(g ∘ f)(x) = g(f(x))
f⁻¹(f(x)) = x when f⁻¹ exists

f⁻¹ is not the reciprocal 1/f. An image/range can be a proper subset of the codomain.