Lesson

Glossary of Concepts and Symbols

Definitions and notation from the Applied Numerical Analysis lessons, linked to explanations and practice.

Last updated:


Using the glossary

This glossary covers the concepts taught so far in the course.
Each entry links to the lesson with context and examples; it grows as new lessons are published.

Bit

0, 10,\ 1

A binary digit: the smallest unit of stored information. Explanation and practice.

Binary notation

10112=111011_2=11

Writing a number with powers of 2 and the digits 0 and 1. Explanation and practice.

Floating point

x=(−1)s×2e×1.fx=(-1)^{s}\times 2^{e}\times 1.f

Storing a number as a sign, an exponent and a significand, in a fixed number of bits.
The point “floats” with the exponent. In the formula 1.f1.f is the significand:
the leading 1 and the fraction digits ff⁠. The formula describes ordinary (normal) numbers; the rule that also covers zero and subnormal numbers is under IEEE 754.
Explanation and practice.

Significand (mantissa)

1.f1f2⋯fp1.f_1f_2\cdots f_p

The significant digits of a floating-point number. For normal numbers the leading 1 is not stored.
Explanation and practice.

Significant digits

256.78 → 5 digits,0.003678 → 4 digits256.78\ \to\ 5\text{ digits},\qquad 0.003678\ \to\ 4\text{ digits}

The digits of a number from the first nonzero digit to the last one kept; zeros in front only place the decimal point.
Rounding to kk significant digits gives a relative error of at most 5×10−k5\times10^{-k}⁠, whatever the size of the number.
Explanation and practice.

Exponent

e=E−biase=E-\text{bias}

The power of 2 that scales the significand. It is stored as a non-negative integer EE with a bias added.
Explanation and practice.

Bias

E=e+biasE=e+\text{bias}

The constant added to the true exponent ee before it is stored, so that the stored exponent field EE is never negative and no sign cell is needed for it:
3 in the tiny format of the lesson, 127 in binary32 and 1023 in binary64.
Explanation and practice.

IEEE 754

x=(−1)s×2e×(h+F2p)=(−1)s×2max⁡(E,1)−bias×(min⁡(E,1)+F2p)\begin{aligned} x&=(-1)^{s}\times2^{e}\times\left(h+\frac{F}{2^{p}}\right)\\[4pt] &=(-1)^{s}\times2^{\max(E,1)-\text{bias}}\times\left(\min(E,1)+\frac{F}{2^{p}}\right) \end{aligned}

IEEE 754 is the standard of the Institute of Electrical and Electronics Engineers that defines the common floating-point formats and their rounding.
In the formula, which gives every number stored in such a format, e=max⁡(E,1)−biase=\max(E,1)-\text{bias} is the exponent that is used, and h=min⁡(E,1)h=\min(E,1) is the hidden bit, the leading cell of the significand that is not stored and is fixed by the exponent field:
h=1h=1 if E≠0E\neq0 and h=0h=0 if E=0E=0⁠; EE is the whole number in the exponent field, FF the whole number in the fraction field and pp the number of fraction cells.
When E≠0E\neq0 the number is normal: h=1h=1 and e=E−biase=E-\text{bias}⁠. When E=0E=0⁠, h=0h=0 and e=1−biase=1-\text{bias}⁠, which gives zero and the subnormal numbers.
The formula does not apply when all exponent cells are 1: that field stands for infinity and NaN.
Explanation and practice.

Machine epsilon

εmach=2−52≈2.22×10−16(binary64)\varepsilon_{\text{mach}}=2^{-52}\approx2.22\times10^{-16}\quad\text{(binary64)}

The gap between 1 and the next larger stored number. Rounding a normal number to the nearest stored number changes it by a relative amount of at most half of this value.
Explanation and practice.

Gap

gap=2e−p\text{gap}=2^{e-p}

The difference between two adjacent stored numbers (in the literature, an ulp, a unit in the last place).
In the normal range, near a number between 2e2^{e} and 2e+12^{e+1}⁠, it is 2e−p2^{e-p}⁠, where pp is the number of fraction cells, so it grows with the size of the number.
In the subnormal range the gap is fixed, 2emin⁡−p2^{e_{\min}-p}⁠, and the formula does not hold there.
The round-off error is at most half of the gap that applies at that place.
Explanation and practice.

binary16, binary32, binary64

p=10, 23, 52p=10,\ 23,\ 52

Three IEEE 754 formats, which differ in the number of fraction cells pp they store:
10 in binary16, 23 in binary32 (float in many languages) and 52 in binary64 (double).
Fraction cells are the binary digits stored after the point.
Explanation and practice.

Normal number

(−1)s×2e×1.f1f2⋯fp(-1)^{s}\times2^{e}\times1.f_1f_2\cdots f_p

A number stored with a leading 1 that is not actually stored:
its exponent field is neither all zeros nor all ones. These are most of the numbers we work with, unlike zero, subnormal numbers, infinity and NaN.
Explanation and practice.

Subnormal number

2emin⁡×0.f1f2⋯fp2^{e_{\min}}\times0.f_1f_2\cdots f_p

A very small number stored without the leading 1, so it has fewer significant bits.
It fills the gap between zero and the smallest normal number, with the same spacing as the smallest normal range.
In the unified formula under IEEE 754 it is the case E=0E=0⁠:
h=0h=0 and e=1−biase=1-\text{bias}⁠, so emin⁡=1−biase_{\min}=1-\text{bias}⁠, the exponent of the smallest normal range (E=1E=1⁠).
Explanation and practice.

Infinity

+∞, −∞+\infty,\ -\infty

A reserved value, produced for example by an overflow. Explanation and practice.

NaN (not a number)

∞−∞\infty-\infty

A reserved value for an undefined result. It is not equal to anything, not even to itself.
Explanation and practice.

Overflow

∣x∣>xmax⁡ ⇒ ±∞|x|>x_{\max}\ \Rightarrow\ \pm\infty

A result larger than the largest number of the format. Explanation and practice.

Underflow

0<∣x∣<xmin⁡0<|x|<x_{\min}

A result smaller than the smallest normal number of the format.
Explanation and practice.

Round to nearest, ties to even

fl(x)=nearest stored number\mathrm{fl}(x)=\text{nearest stored number}

The IEEE 754 rule: use the stored number nearest to the exact result; in a true tie use the one whose last fraction bit is 0.
In binary, look at the bits that are cut off: if the first of them is 0, round down (less than half); if it is 1 and some 1 follows it, round up (more than half); if it is 1 and only zeros follow, it is a tie.
An example of a tie: the cut-off part is 1000…1000\ldots⁠. The two stored numbers beside the number are …0011\ldots0011 and …0100\ldots0100 (the last bit of the first is 1 and of the second is 0), and the number lies exactly halfway between them, so we choose …0100\ldots0100⁠.
Had the two been …0010\ldots0010 and …0011\ldots0011⁠, we would choose …0010\ldots0010⁠, whose last bit is 0.
Explanation and practice.

Chopping

0.0001100110011…2 → 0.0001100110011001100110020.0001100110011\ldots_2\ \to\ 0.00011001100110011001100_2

Dropping the digits that do not fit instead of rounding. For a given sign, the error is always in the same direction:
the size never grows. Explanation and practice.

Absolute error

E=∣x−x^∣E=|x-\hat x|

The size of the difference between the true value xx and the approximation x^\hat x⁠, in the units of the quantity.
Explanation and practice.

Relative error

Erel=∣x−x^∣∣x∣E_{\text{rel}}=\frac{|x-\hat x|}{|x|}

The absolute error divided by the size of the true value (x≠0x\neq0⁠):
roughly the fraction of the number that is wrong, and a guide to the number of correct significant digits.
Explanation and practice.

Correct digits

−log⁡10E-\log_{10}E

A measure of the accuracy of an estimate by its absolute error EE⁠:
an error of 10−410^{-4} is 4 correct digits after the decimal point.
For a value near 1, as in the examples of unit 2, this is almost the number of correct significant digits.
For a much smaller or larger value the number of significant digits is set by the relative error.
Explanation and practice.

Round-off error

∣fl(x)−x∣≤12 gap|\mathrm{fl}(x)-x|\le\tfrac12\,\text{gap}

The error made by keeping a finite number of digits or bits.
Explanation and practice.

Truncation error

e−∑k=0n1k!e-\sum_{k=0}^{n}\frac1{k!}

The error made by replacing an infinite process (a series, a limit) by a finite one.
Explanation and practice.

Partial sum

S2=x−x22S_2=x-\frac{x^2}{2}

The sum of the first terms of a series, where the infinite process is stopped.
The truncation error of a partial sum of an alternating series whose terms shrink to zero in size is at most the first term that was dropped (the Leibniz bound).
It is close to that term only when the terms are small and shrink fast, for example in S2S_2 of ln⁡(1+x)\ln(1+x) for small xx⁠:
the first dropped term is x33\dfrac{x^3}{3}⁠, and the error is almost equal to it.

Limit

lim⁡x→0ln⁡(1+x)x=1\lim_{x\to0}\frac{\ln(1+x)}{x}=1

The value an expression approaches as its variable approaches a given value.
For example the ratio ln⁡(1+x)x\dfrac{\ln(1+x)}{x} is about 0.99950.9995 for x=0.001x=0.001⁠, and closer to 1 the smaller xx is.

Limit point of a sequence

lim⁡k→∞cnk=ℓ,n1<n2<n3<⋯\lim_{k\to\infty}c_{n_k}=\ell,\qquad n_1<n_2<n_3<\cdots

A number ℓ\ell that some of the terms of a sequence approach:
there are terms, with growing positions n1<n2<n3<⋯n_1<n_2<n_3<\cdots⁠, that tend to ℓ\ell⁠.
A sequence that has a limit has exactly one limit point, that limit.
The numbers 1,0,1,0,…1,0,1,0,\ldots have no limit, but two limit points, 0 and 1.
Where it is used.

Supremum and infimum

S=sup⁡A,x≤S for every x∈AS=\sup A,\qquad x\le S\ \text{for every } x\in A

The supremum of a non-empty set AA of numbers that is bounded above is its least upper bound:
the smallest number SS that is at least every number in AA⁠.
The infimum of a set that is bounded below is its greatest lower bound.
The supremum need not belong to the set: for the numbers 1−1n1-\tfrac1n⁠, n=1,2,3,…n=1,2,3,\ldots⁠, it is 1.
Where it is used.

First-order approximation (linear approximation)

f(x)≈f(a)+f′(a) (x−a)f(x)\approx f(a)+f'(a)\,(x-a)

Replacing a function, near a point aa⁠, by the expression that keeps only the constant term and the linear term.
For example ex≈1+xe^{x}\approx1+x near 00⁠. For ln⁡(1+x)\ln(1+x) near 00 the constant term is 00⁠:
ln⁡(1+x)=x−x22+x33−⋯\ln(1+x)=x-\dfrac{x^2}{2}+\dfrac{x^3}{3}-\cdots⁠, so ln⁡(1+x)≈x\ln(1+x)\approx x when xx is small. The relative difference is about x2\dfrac{x}{2}⁠, for example about 5×10−115\times10^{-11} for x=10−10x=10^{-10}⁠.

Catastrophic cancellation

(109+7)2−(109+4)2(10^{9}+7)^2-(10^{9}+4)^2

The loss of most significant digits when two nearly equal numbers are subtracted:
the leading digits cancel and rounding errors remain. Often avoided by rearranging the algebra.
Explanation and practice.

Discounting

C(1+r)t\frac{C}{(1+r)^{t}}

Computing what a payment CC received tt periods from now is worth today, when the interest rate per period is rr⁠:
a sum put aside today at a rate rr per period grows to CC in tt periods.
The sum of the discounted payments is what they are worth together today.
Explanation and practice.

Intermediate value theorem

f∈C([a,b]), f(a) f(b)<0 ⇒ ∃ c∈[a,b]: f(c)=0f\in C([a,b]),\ f(a)\,f(b)<0\ \Rightarrow\ \exists\,c\in[a,b]:\ f(c)=0

A continuous function that changes sign on an interval must be zero somewhere inside it.
It guarantees that a root exists, not where it is. Explanation and practice.

Continuity

∀ η>0 ∃ γ>0: ∣x−x0∣<γ ⇒ ∣f(x)−f(x0)∣<η\forall\,\eta>0\ \exists\,\gamma>0:\ |x-x_0|<\gamma\ \Rightarrow\ |f(x)-f(x_0)|<\eta

A function is continuous at a point when a small change of xx causes a small change of f(x)f(x)⁠, and continuous on an interval when it is continuous at every point of it.
Informally, its graph can be drawn without lifting the pen. Explanation and practice.

Bracket

[a,b],f(a) f(b)≤0[a,b],\quad f(a)\,f(b)\le0

An interval on whose ends a continuous function has opposite signs, so a root lies inside it (0 is allowed: an end that is already a root ends the search).
Bisection and regula falsi need one. Explanation and practice.

Bisection

c=a+b2,N=⌈log⁡2b−aεtol⌉c=\frac{a+b}{2},\qquad N=\left\lceil\log_2\frac{b-a}{\varepsilon_{\text{tol}}}\right\rceil

Halve the bracket at each step and keep the half where the sign changes.
Never fails inside a bracket; the error bound halves each step.
Here nn counts the iterations performed ([a0,b0]=[a,b][a_0,b_0]=[a,b] is the start).
The number of iterations NN is the smallest integer for which the stopping test εn≤εtol\varepsilon_n\le\varepsilon_{\text{tol}} holds at n=Nn=N⁠, as written in the course conventions.
Explanation and practice. At least one iteration is performed, so N=max⁡(1,⌈⋅⌉)N=\max(1,\lceil\cdot\rceil) when εtol≥b−a\varepsilon_{\text{tol}}\ge b-a⁠.

Regula falsi

c=a f(b)−b f(a)f(b)−f(a)c=\frac{a\,f(b)-b\,f(a)}{f(b)-f(a)}

Like bisection, but the new point is where the chord through the two ends crosses zero.
Often faster, but one end can stay fixed. Explanation and practice.

Divided difference

f[x,y]=f(x)−f(y)x−y,f[x,y,z]=f[x,y]−f[y,z]x−zf[x,y]=\frac{f(x)-f(y)}{x-y},\qquad f[x,y,z]=\frac{f[x,y]-f[y,z]}{x-z}

The slope of the chord through (x,f(x))(x,f(x)) and (y,f(y))(y,f(y))⁠; for f(x)=x2f(x)=x^2⁠, f[1,3]=4f[1,3]=4⁠.
The second-order divided difference f[x,y,z]f[x,y,z] measures how much the slope changes, and is never negative for a convex function.
Explanation and practice.

Differentiability

f′(x0)=lim⁡y→x0f[x0,y]f'(x_0)=\lim_{y\to x_0}f[x_0,y]

ff is differentiable at x0x_0 when the slopes of the chords through x0x_0 approach a limit as the second point approaches x0x_0⁠.
The limit is the derivative f′(x0)f'(x_0)⁠, the slope of the tangent.
Explanation and practice.

Convex and concave

A function is convex on an interval when every chord lies above its graph (or on it), like x2x^2⁠; it is concave when every chord lies below its graph (or on it), like −x2-x^2⁠; ff is concave exactly when −f-f is convex.
Explanation with figures.

Linear convergence

en+1≈C en,0<C<1e_{n+1}\approx C\,e_n,\qquad 0<C<1

The error shrinks by a roughly constant factor each step, gaining a fixed number of digits per step.
For bisection the error bound εn\varepsilon_n has C=12C=\tfrac12 (the error itself need not shrink at every step).
The English literature calls the bound sense R-linear and the ratio sense Q-linear (the terms).
Explanation and practice.

Tolerance

εn≤εtol,δn≤δtol\varepsilon_n\le\varepsilon_{\text{tol}},\quad \delta_n\le\delta_{\text{tol}}

The error we are willing to accept, which decides when an iterative method stops (the stopping threshold; for deciding whether two numbers are equal see the comparison tolerance).
It is compared with the step εn\varepsilon_n and, when a question asks, with the residual δn\delta_n⁠; the inequality is weak (at most the tolerance) unless written otherwise.
The course conventions and explanation and practice.

Comparison tolerance

∣a−b∣≤max⁡(rel_tol⋅max⁡(∣a∣,∣b∣), abs_tol)|a-b|\le\max\bigl(\text{rel\_tol}\cdot\max(|a|,|b|),\ \text{abs\_tol}\bigr)

The pair of bounds, one relative and one absolute, within which two computed numbers count as equal (the rule of Python’s math.isclose).
It is different from the tolerance that stops an iteration. Explanation.

Residual

δn=∣f(xn)∣,δn=∥Axn−b∥\delta_n=\lvert f(x_n)\rvert,\qquad \delta_n=\lVert Ax_n-b\rVert

How far the current answer is from solving the problem itself:
the value of ff at the answer, or the mismatch of a linear system.
A small residual does not always mean a small error in xx⁠.
The course conventions.

Norm

∥x∥2=x12+⋯+xn2\lVert x\rVert_2=\sqrt{x_1^2+\cdots+x_n^2}

A single number measuring the size of a vector (or matrix). Without a subscript, a vector norm means the Euclidean norm and a matrix norm means the induced 2-norm; questions that need a hand calculation name an easier norm (1, ∞\infty or Frobenius).
The course conventions.

Order of convergence

lim⁡n→∞∣en+1∣∣en∣q=C≠0\lim_{n\to\infty}\frac{\lvert e_{n+1}\rvert}{\lvert e_n\rvert^{q}}=C\neq0

The number qq that says how fast the error shrinks: 1 is linear, 2 is quadratic.
The course conventions.

Newton–Raphson method

xn+1=xn−f(xn)f′(xn)x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}

Replace the function by its tangent at the current point and jump to where the tangent crosses zero.
Very fast near a root, but needs the derivative and a good start.
Explanation and practice.

Secant method

xn+1=xn−f(xn) xn−xn−1f(xn)−f(xn−1)x_{n+1}=x_n-f(x_n)\,\frac{x_n-x_{n-1}}{f(x_n)-f(x_{n-1})}

Newton’s method with the derivative replaced by the slope through the two latest points.
Needs only values of ff⁠; convergence order 1+52≈1.618\tfrac{1+\sqrt5}{2}\approx1.618⁠. Explanation and practice.

Quadratic convergence

en+1≈C en 2e_{n+1}\approx C\,e_n^{\,2}

The error is roughly squared at each step, so the number of correct digits doubles.
Newton’s method behaves this way near a simple root. Explanation and practice.

Fixed point

g(x∗)=x∗g(x^*)=x^*

A number that a function leaves unchanged. A root of f(x)=0f(x)=0 can be turned into a fixed point of g(x)=x−f(x)g(x)=x-f(x) or of many other rules.
Explanation.

Fixed-point iteration

xn+1=g(xn)x_{n+1}=g(x_n)

Apply the same rule again and again. Near a fixed point x∗x^* with ∣g′(x∗)∣<1|g'(x^*)|<1 it converges linearly, and the error shrinks by the factor ∣g′(x∗)∣|g'(x^*)| at each step.
Newton’s method is the case g′(x∗)=0g'(x^*)=0⁠. Explanation.

Inverse quadratic interpolation

xn+1=p(0),p(fi)=xi for three pointsx_{n+1}=p(0),\quad p(f_i)=x_i\ \text{for three points}

Fit xx as a quadratic function of yy through three points and evaluate it at y=0y=0⁠.
Uses only values of ff⁠; convergence order about 1.84. Part of Brent’s method.
Explanation.

Brent's method

f(an) f(bn)≤0,n=0,1,2,…f(a_n)\,f(b_n)\le0,\qquad n=0,1,2,\ldots

A method that keeps a bracket [an,bn][a_n,b_n] around the root at every step, as bisection does, and tries a fast candidate first:
an inverse quadratic interpolation step or a secant step. A candidate that is not well inside the bracket, or does not shorten the step enough, is replaced by a bisection step.
The root is never lost, and when the function is well behaved the fast steps do most of the work.
SciPy’s brentq is built on it. Explanation and lab.

Implied volatility

C(σ)=CmktC(\sigma)=C_{\mathrm{mkt}}

The volatility σ\sigma that makes an option-pricing formula reproduce the observed market price; found by solving a nonlinear equation.
Explanation and practice.

Vega

∂C∂σ\dfrac{\partial C}{\partial\sigma}

The derivative of the option price with respect to the volatility:
how much the price changes when the volatility changes. In the implied volatility problem it is the slope f′(σ)f'(\sigma) of Newton’s method.
Explanation and practice.

Yield of a bond

∑k=0m−1ck(1+y2)w+k=P\sum_{k=0}^{m-1}\frac{c_k}{\left(1+\frac y2\right)^{w+k}}=P

The yearly rate yy at which the discounted payments of a bond equal the price paid (the quoted price plus the interest accrued since the last payment); found by solving a nonlinear equation.
In the formula the bond pays ckc_k every half-year, k=0,1,…,m−1k=0,1,\ldots,m-1⁠, interest is credited twice a year, so each half-year is discounted by the factor 1+y21+\frac y2⁠, and ww is the fraction of a half-year until the first payment.
A bond that pays once a year is discounted by (1+y)t(1+y)^t after tt years.
Explanation and practice.