encyclopegia.org

Truncation error

In numerical analysis and scientific computing, truncation error is an error caused by approximating a mathematical process.[src] The term truncation comes from the fact that these simplifications often involve the truncation of an infinite series expansion so as to make the computation possible and practical.[src]

In numerical analysis and scientific computing, truncation error is an error caused by approximating a mathematical process.[src] The term truncation comes from the fact that these simplifications often involve the truncation of an infinite series expansion so as to make the computation possible and practical.[src] e^x=1+ x+ \frac{x^2}{2!} + \frac{x^3}{3!}+ \frac{x^4}{4!}+ \cdots In reality, we can only use a finite number of these terms as it would take an infinite amount of computational time to make use of all of them.[src] So let's suppose we use only three terms of the series, then e^x\approx 1+x+ \frac{x^2}{2!} In this case, the truncation error is \frac{x^3}{3!}+\frac{x^4}{4!}+ \cdots Example A: Given the following infinite series, find the truncation error for if only the first three terms of the series are used.[src] S = 1 + x + x^2 + x^3 + \cdots, \qquad \left|x\right| Solution Using only first three terms of the series gives \begin{align} S_3 &= \left(1+x+x^2\right)_{x=0.75} \\ & = 1+0.75+\left(0.75\right)^2 \\ &= 2.3125 \end{align} The sum of an infinite geometrical series S = a + ar + ar^2 + ar^3 + \cdots,\ r is given by S = \frac{a}{1-r} For our series, and , to give S=\frac{1}{1-0.75}=4 The truncation error hence is \mathrm{TE} = 4 - 2.3125 = 1.6875 f'(x) = \lim_{h \to 0} \frac{f(x+h)-f(x)}{h} However, if we are calculating the derivative numerically, h has to be finite.[src] The error caused by choosing h to be finite is a truncation error in the mathematical process of differentiation.[src] Example A: Find the truncation in calculating the first derivative of f(x)=5x^3 at x=7 using a step size of h=0.25 Solution: The first derivative of f(x)=5x^3 is f'(x) = 15x^2, and at x=7 , f'(7) = 735.[src] The approximate value is given by f'(7) = \frac{f(7+0.25)-f(7)}{0.25} = 761.5625 The truncation error hence is \mathrm{TE} = 735 - 761.5625 = -26.5625 P = \left \{[x_0,x_1], [x_1,x_2], \dots,[x_{n-1},x_n] \right \}, be a partition of I, where a = x_0 \int_{a}^b f(x) \, dx = \sum_{i=1}^{n} f(x_i^*)\, \Delta x_i where \Delta x_i = x_i - x_{i-1} and x_i^* \in [x_{i-1}, x_i] .[src] This implies that we are finding the area under the curve using infinite rectangles.[src] However, if we are calculating the integral numerically, we can only use a finite number of rectangles.[src] The error caused by choosing a finite number of rectangles as opposed to an infinite number of them is a truncation error in the mathematical process of integration.[src] Example A.[src] For the integral \int_{3}^{9}x^{2}{dx} find the truncation error if a two-segment left-hand Riemann sum is used with equal width of segments.[src] Solution We have the exact value as \begin{align} \int_{3}^{9}{x^{2}{dx}} &= \left[ \frac{x^{3}}{3} \right]_{3}^{9} \\ & = \left[ \frac{9^{3} - 3^{3}}{3} \right] \\ & = 234 \end{align} Using two rectangles of equal width to approximate the area (see Figure 2) under the curve, the approximate value of the integral \begin{align} \int_3^9 x^2 \, dx &\approx \left.[src] \left(x^2\right) \right|_{x = 3}(6 - 3) + \left.[src] \left(x^2\right) \right|_{x = 6}(9 - 6) \\ & = (3^2)3 + (6^2)3 \\ &= 27 + 108 \\ &= 135 \end{align} \begin{align} \text{Truncation Error} &= \text{Exact Value} - \text{Approximate Value} \\ &= 234 - 135 \\ &= 99.[src] \end{align} Occasionally, by mistake, round-off error (the consequence of using finite precision floating point numbers on computers), is also called truncation error, especially if the number is rounded by chopping.[src] That is not the correct use of "truncation error"; however calling it truncating a number may be acceptable.[src] Truncation error can cause (A+B)+C \neq A+(B+C) within a computer when A = -10^{25}, B = 10^{25}, C = 1 because (A+B)+C = (0)+C = 1 (like it should), while A+(B+C) = A+(B)=0 .[src] Here, A+(B+C) has a truncation error equal to 1.[src] This truncation error occurs because computers do not store the least significant digits of an extremely large integer.[src]

23 sentences · 23 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Truncation error." encyclopegia.org, 2025, https://encyclopegia.org/wiki/truncation-error. Accessed 25 November 2026.

Chicago

"Truncation error." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/truncation-error.

APA

encyclopegia.org. (2025). Truncation error. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/truncation-error

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

target error

stub · references available

circular error probable

stub · references available

bit error

stub · references available

Margin for Error

stub · references available

Truncation

stub · references available

syntax error

stub · references available

error cultur

stub · references available

X-ray crystal truncation rod

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1302579951 · 0.5 · snapshot enwiki-001302579951

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.