수치 미분·수치 적분·반올림 오차Numerical differentiation, integration and rounding
간격·상쇄·합 순서에서 실제 자료의 검산까지From step size, cancellation and summation order to actual-data checks
실습 6종 · 풀이 포함 연습문제 34개6 labs · 34 exercises with solutions
기초Foundations
1. 수학적으로 맞는 식도 컴퓨터에서는 다를 수 있다1. A correct formula can behave differently on a computer
8장에서는 h를 0으로 보내 미분을 정의했고 10장에서는구간을 잘게 나누어 적분을 정의했습니다. 그런데 컴퓨터에서 h를 작게 하거나 덧셈 횟수를 늘리면 항상 더 정확해질까요? 컴퓨터는 유한한 숫자 자리만 저장하므로 수학적 극한과 실제 계산의 경로가 다를 수 있습니다.
이 장의 새 질문은 같은 대상을 어떤 식·간격·합 순서로 계산해야 믿을 수 있는가입니다. 근사공식의 절단오차,숫자 저장·연산의 반올림,입력자료의 측정·결측을 구별합니다. 긴 소수점이나 매끈한 그래프 하나가 정확성을 보장하지 않습니다.
Chapter 8 sent h to zero to define a derivative, and Chapter 10 refined intervals to define an integral. Does making h smaller or adding more terms always improve a computer result? Finite storage makes the computational path different from the mathematical limit.
Ask which expression, step and summation order reliably calculate the intended quantity. Separate truncation, representation/rounding and measurement/missingness errors. Extra printed digits and smooth plots are not accuracy guarantees.
기초Foundations
2. 0.1을 저장하는 이진수의 한계2. Binary representation of 0.1
십진수에서 1/3은 0.333…으로 끝나지 않습니다. 같은 일이 이진수에서는 0.1에 생깁니다.0.1은 유한한 2진분수로 정확히 표현되지 않아 가까운 저장값을 택합니다. 따라서 0.1+0.2가 0.3과 비트까지 같지 않을 수 있습니다.
0.1binary64 storage=2553602879701896397=101
이는 수학에서 1/10+2/10=3/10이 틀렸다는 뜻이 아닙니다. 입력한 십진수·저장된 이진 근사·화면에 반올림한 표시는 세 가지입니다. 출력을 0.3으로 줄여 보여도 저장값이 저절로 바뀌지는 않습니다.
분수나 정수로 정확히 처리할 수 있는 문제는 그 기준을 검산에 사용할 수 있습니다. 다만 입력한 소수를 먼저 float로 바꾼 뒤 정밀형으로 옮기면 원래 문자열이 아니라 이미 반올림한 값을 정밀하게 보존할 수 있습니다. 어떤 값을 기준으로 삼았는지 밝혀야 합니다.
Decimal 1/3 repeats forever. In binary,0.1 repeats and finite storage chooses a nearby value. Consequently 0.1+0.2 need not match the stored 0.3 bit for bit.
0.1binary64 storage=2553602879701896397=101
This does not invalidate 1/10+2/10=3/10 in exact arithmetic. Distinguish the decimal input, binary stored approximation and rounded display.
Exact fractions or integers can provide checking references. Constructing a high-precision value after first converting to float may preserve an already rounded input rather than the original decimal string.
기초Foundations
3. 유효숫자·기계정밀도·표시자릿수3. Significant digits, machine precision and display
일반적인 binary64는 유효 이진숫자 53비트를 사용합니다.53자리 십진수를 뜻하지는 않습니다.1에서다음표현 가능한 수까지의간격은 2⁻⁵²≈2.22×10⁻¹⁶입니다. 수가커지면표현 가능한 수사이의절대 간격도커집니다.
EPSILON=2−52,1+10−16 may round to 1
반올림 오차의 규모는 연산·입력 크기·범위에 달려 있습니다. 가장 가까운 수로 반올림하는 정규 범위의 기본 연산에서 흔히 쓰는 단위반올림은 2⁻⁵³입니다. 이를 모든 함수호출·언더플로·오버플로의무조건 상계로일반화하지않습니다.
아주 큰 exp값은∞로 넘치고 아주 작은 양수는 0으로 떨어질 수 있습니다. 수학적 함수가 0이나∞인것과 저장 범위의결과는다릅니다. 실습에서는사용한수치형·범위를기록하고 출력을몇자리보이는지와구별합니다.
Binary 64 uses 53 significant binary bits, not 53 decimal digits. The spacing above 1 is 2⁻⁵²≈2.22×10⁻¹⁶; absolute spacing grows with magnitude.
EPSILON=2−52,1+10−16 may round to 1
Rounding depends on operations, scales and range. The commonly used unit roundoff 2⁻⁵³ concerns nearest rounding of basic operations in normal range; it is not an unconditional bound for every function call or overflow/underflow.
A finite mathematical exponential can overflow, and a positive one can underflow to zero. Record numeric type and range separately from displayed precision.
기초Foundations
4. 전진차분: 앞쪽 점 하나를 더 쓰기4. Forward difference uses one additional point
점 a의 도함수를 함수값으로 근사하는 첫 방법은[f(a+h)−f(a)]/h입니다. h≠0이고 두 점이 함수의 정의역 안에 있어야 합니다. 실습에서는앞쪽을뜻하도록 h>0으로정하지만수학적 차분 자체는음의 h로도계산할 수 있습니다.
Dh+f(a)=hf(a+h)−f(a)
f=x²이면 D⁺=2a+h로 정확한 도함수 2a에 h가 더해집니다. h가절반이되면 이 예제의절단오차도절반입니다. f=x³이면 3a²+3ah+h²로다른오차형태가나옵니다.
이 식은근처 입력의함수값을마음대로계산할 수 있는모형에서쓸수있습니다. 실제 연간관측표의다음점이 1년뒤라면표가주지않는 h=0.001년을그대로관측차분이라고부를수없습니다.
The forward quotient[f(a+h)−f(a)]/h requires nonzero h and valid function inputs. The lab uses h>0 for a forward direction, although negative mathematical steps are also possible.
Dh+f(a)=hf(a+h)−f(a)
For x² it equals 2a+h, so halving h halves its exact truncation error. For x³ it is 3a²+3 ah+h².
A callable model permits chosen steps. A table of annual observations does not supply a new observation 0.001 year away.
기초Foundations
5. 중심차분: 양쪽을 써서 상쇄되는 항5. Central differences cancel a leading term
이상적인 실수산술에서오차가 0인경우에도컴퓨터의뺄셈·나눗셈은반올림할 수 있습니다. 따라서상징식의정확성과계산된 표의오차를구별합니다.
Using a−h and a+h gives denominator 2 h. In exact arithmetic x² yields 2a, while x³ yields 3a²+h². Symmetry removes the first-order h term.
Dh0f(a)=2hf(a+h)−f(a−h),Dh0(x3)=3a2+h2
Compare both quotients for x²,x³ and eˣ. Exact cancellation for the quadratic is not universal. Both side inputs must exist, which can fail at a domain boundary.
Even a symbolically exact quotient can round in floating-point arithmetic. Keep exact formulas separate from computed errors.
학부Undergraduate
6. Taylor 나머지로 차분오차를 설명6. Taylor remainders explain difference errors
f가 a근처에서 2번연속미분가능하고|f″|≤M₂이면전진차분의오차는 M₂|h|/2이하입니다. f(a+h)를 1차 Taylor식과 2차나머지로쓴뒤 h로나누면얻습니다.
The central bound assumes C³ and |f‴|≤M₃ over both sides. Even Taylor terms cancel, leaving cubic remainders. The O(h) and O(h²) statements retain these smoothness assumptions.
These are truncation bounds for exact values/arithmetic, not the full effects of noisy or rounded evaluations divided by h.
기초Foundations
7. h를 줄이다가 오차가 다시 커지는 이유7. Why error can grow again as h shrinks
eˣ의 a=1에서정확한 도함수는 e입니다. h를 10⁻¹부터 10⁻¹⁶까지줄이면처음에는절단오차가작아지지만나중에는두 가까운 함수값의 차이가유효숫자를 잃습니다. 저장된 a+h가 a와같아지면전진분자는 0이될 수 있습니다.
At a=1, the exponential's derivative is e. Shrinking h from 10⁻¹ to 10⁻¹⁶ first reduces truncation but eventually loses information in subtracting nearby values. If stored a+h equals a, the forward numerator can be zero.
illustrative total error≲C1∣h∣p+C2∣h∣ε
This models truncation and amplified evaluation error. Typical p values are 1 for forward and 2 for smooth central differences. Constants, scales and evaluation errors vary; it is not a universal sharp bound.
Do not fix one h for all functions and scales. Compare a range while checking accidental agreement. Libraries can differ in last digits and the best observed step.
기초Foundations
8. 안정된 숫자가 미분의 존재를 증명하지는 않는다8. A stable number does not prove derivative existence
|x|의 0 중심차분은 모든 h≠0에서 0입니다. 계산값이 간격마다 완전히 안정돼도 좌우 기울기 −1,+1이 다르므로 도함수는 존재하지 않습니다. 수치 알고리즘은 가정을 대신 검증해 주지 않습니다.
2h∣h∣−∣−h∣=0(h=0),∣x∣ is not differentiable at 0
실제 도함수가 0인 x²의 a=0에서는 중심차분도 정확한 산술로 0입니다. 이때 절대오차는 0이지만 상대오차는 0/0이라 정의되지 않습니다. 앞 반례와는 이유가 다르므로 같은 0 표시만 보고 해석하지 않습니다.
오차 그래프의 로그축은 0을 표시할 수 없습니다. 표시를 위해 가짜 양수를 실제 오차로 기록하지 말고 별도 0 기호·설명을 사용합니다. 계산 실패·정의되지 않음·정확한 0을 따로 표시해야 합니다.
The central quotient of|x| at zero is 0 for every nonzero h, yet distinct one-sided slopes mean no derivative exists. A stable computation does not establish its assumptions.
2h∣h∣−∣−h∣=0(h=0),∣x∣ is not differentiable at 0
For x² at zero, a true zero derivative gives zero absolute central error in exact arithmetic, but relative error is 0/0 and undefined. This differs from the nondifferentiable example.
A log error axis cannot plot zero. Use a separate zero marker rather than recording a fake positive error. Distinguish failure, undefined results and exact zero.
선택 심화Optional extension
9. 선택 심화: 두 간격에서 공통 오차를 없애기9. Optional extension: cancel a shared error term
충분히 매끄러운 함수의 중심차분이 Dₕ=f′+c h²+O(h⁴)라면 h/2에서는 c h²/4가 됩니다. 두 식을 4배와 1배로 묶으면 이 항이 상쇄됩니다. 안전한 유도에서는 5차 도함수까지의 Taylor 조건을 확인합니다.
Dext=34Dh/20−Dh0=f′(a)+O(h4)
x³의 중심차분 3a²+h²에 대입하면 4[3a²+h²/4]−[3a²+h²]를 3으로 나누어 정확히 3a²입니다. 이것은 함수의 오차구조를 이용한 Richardson 외삽입니다.
두 간격의 차이로 오차를 추정하는 것은 해당 점근구조와 작은 반올림을 가정합니다. 실제 연간관측을 반으로 쪼개 새 관측을 만드는 방법이 아닙니다. 이미 반올림으로 망가진 두 값의 차이를 조합해 언제나 복구하는 만능법도 아닙니다.
If a sufficiently smooth central quotient has Dₕ=f′+c h²+O(h⁴), its half-step counterpart has leading error c h²/4. A weighted combination cancels it. Check Taylor conditions through a fifth derivative for a safe derivation.
Dext=34Dh/20−Dh0=f′(a)+O(h4)
For x³, substitute 3a²+h² to obtain exactly 3a². This Richardson extrapolation uses an identified error structure.
Error estimates from two steps require that structure and small rounding. They neither create half-year observations from annual data nor universally repair damaged evaluations.
기초Foundations
10. 같은 식이라도 상쇄를 피하는 계산이 있다10. Equivalent expressions can avoid cancellation
x>0에서 (√(1+x)−1)/x를 계산합니다. x가 작으면 제곱근이 1에 가까워져 빼는 과정에서 많은 유효숫자를 잃습니다. 분자와 분모에 √(1+x)+1을 곱하면 같은 실수값의 다른 식을 얻습니다.
x1+x−1=1+x+11(x>0),x→0limx1+x−1=21
실습은 x=10⁻ᵏ에서 두 식을 비교합니다. 원래 식의 분자가 0으로 반올림될 때도 유리화한 식은 대체로 1/2 근처의 정보를 유지합니다. 유리화한 값도 유한정밀도 계산이며 수학적 정확값 그 자체라고 부르지 않습니다.
x=0은 원래 식의 정의역 밖입니다. 극한 1/2로 연속확장을 새로 정할 수 있지만 0으로 나눈 결과가 1/2라는 뜻은 아닙니다. exp(x)−1과 ln(1+x)도 작은 입력에 맞춘 수치함수와 대조할 수 있습니다.
For positive x, subtracting 1 from a nearly equal √(1+x) loses significant digits. Rationalization yields an equivalent real expression without that subtraction.
x1+x−1=1+x+11(x>0),x→0limx1+x−1=21
Compare at x=10⁻ᵏ. The rationalized expression generally retains information near one half even when the direct numerator rounds to zero. It remains a finite-precision approximation, not the exact real number itself.
Zero is excluded from the original quotient. Defining its continuous extension differs from division by zero. Small-input routines for exp(x)−1 and ln(1+x) address related issues.
학부Undergraduate
11. 민감한 문제와 불안정한 계산은 다르다11. Sensitive problems differ from unstable algorithms
거의 같은 두 입력 a,b의 차이를 구하면 입력 자체의 작은 오차도 차이와 비슷할 수 있습니다. a−b가 아주 작으면 각 입력의 상대적 불확실성이 작아도 결과의 상대 불확실성은 커집니다. 정확한 덧셈 알고리즘이 알려지지 않은 입력 정보를 되찾을 수는 없습니다.
κsum=∣∑ixi∣∑i∣xi∣(i∑xi=0)
합의 상대 민감도를 읽는 한 지표입니다. 양수만 더하면 κ=1이고 큰 양·음항이 상쇄되면 커질 수 있습니다. 합이 0이면 이 상대 지표는 정의되지 않아 절대오차로 살펴야 합니다.
문제의 민감도는 입력이 바뀔 때 진짜 답이 얼마나 바뀌는가,알고리즘의 안정성은 같은 저장입력을 얼마나 정확히 처리하는가입니다. 개선된 식은 계산 손실을 줄여도 측정오차·결측을 없애지 않습니다.
When two inputs nearly cancel, their small uncertainties can be comparable to the result. An exact algorithm cannot recover unknown input information.
κsum=∣∑ixi∣∑i∣xi∣(i∑xi=0)
This relative sensitivity measure equals 1 for positive-only sums and can be large under cancellation. It is undefined for a zero total, where absolute error is needed.
Conditioning asks how the true answer responds to input changes; stability asks how accurately an algorithm processes given stored inputs. Better formulas cannot remove missingness or measurement uncertainty.
기초Foundations
12. 덧셈 순서도 답을 바꿀 수 있다12. Addition order can change the result
정확한 실수산술에서 10¹⁶+1−10¹⁶=1입니다. 그러나 순차 binary64 덧셈에서 10¹⁶에 1을 더하면 1이 사라질 수 있어 결과 0이 나옵니다. 큰 양·음항을 먼저 소거하고 1을 더하면 1이 됩니다. 수학의 결합법칙을 유한정밀도 연산에 그대로 적용한 것은 아닙니다.
실습의 순차합은 명시적인 반복문에서 +를 적용합니다. 일부 언어의 기본 sum은 개선된 알고리즘을 사용하므로 이를 순진한 반복합과 같다고 단정하지 않습니다. 라이브러리의 정확한 역할과 버전을 기록합니다.
쌍별합·보상합·정밀합은 오차를 줄일 수 있지만 모든 입력에서 항상 정확하다는 뜻은 아닙니다. 특히 어떤 보상법도 모든 상쇄 예제를 자동 복구한다고 주장하지 않습니다. 실제 자료에서는 정수·분수 기준과 여러 순서를 함께 대조합니다.
Exact arithmetic gives 10¹⁶+1−10¹⁶=1. A sequential binary 64 addition can lose the 1 and return zero; cancelling the large terms first gives 1. Floating-point evaluation does not retain exact associativity.
The lab defines sequential addition with an explicit loop. Some built-in sum functions use improved algorithms, so do not assume they are naive loops. Record implementation and version.
Pairwise, compensated and accurate sums can help without guaranteeing exactness for all inputs. Compare several orders with integer/fraction references where available.
기초Foundations
13. 숫자가 같은지보다 무엇을 허용할지 묻기13. Ask what tolerance is justified
실수 근사값을 비교할 때 항상 비트 동일성을 요구하면 수학적으로 좋은 계산도 실패로 보일 수 있습니다. 반대로 소수 둘째 자리만 같으면 충분하다고 숨기면 큰 오차를 놓칩니다. 단위·목적·기준값 규모에 맞는 허용오차를 먼저 정합니다.
∣u−v∣≤εabs+εrelmax(∣u∣,∣v∣)
절대허용오차는 u,v와 같은 단위이고 상대허용오차는 단위가 없는 비율입니다.0 근처에서는 상대항만으로 부족하므로 절대항이 중요합니다. 기준이 알려진 정확값인지 다른 알고리즘의 근사인지도 밝힙니다.
통계적 신뢰구간과 수치 허용오차는 다릅니다. 전자는 표본 변동 등의 가정을,후자는 계산·비교의 정밀도 기준을 다룹니다. 정확한 컴퓨터값이라고 실제 경제효과의 불확실성이 사라지지는 않습니다.
Demanding bit equality can reject good approximations; hiding differences by rounding to two digits can miss important errors. Choose tolerances from units, purpose and scale.
∣u−v∣≤εabs+εrelmax(∣u∣,∣v∣)
Absolute tolerance shares the quantity's units, while relative tolerance is dimensionless. Near zero, the absolute term matters. Disclose whether the reference is exact or another approximation.
Statistical confidence intervals and numerical tolerances address different uncertainties. Accurate arithmetic does not eliminate uncertainty about a real effect.
기초Foundations
14. 수치적분: 원시함수 없이 합으로 계산14. Quadrature computes integrals without an explicit antiderivative
함수값을 계산할 수 있어도 원시함수를 간단한 식으로 쓰지 못할 수 있습니다. 이때 작은 구간의 합으로 정적분을 근사합니다. a<b,n개 등분구간,너비 Δx=(b−a)/n을 먼저 정합니다. 구간 n개에는 끝점이 n+1개입니다.
xi=a+iΔx,Δx=nb−a,i=0,…,n
왼쪽·오른쪽 직사각형은 10장에서 배웠습니다. 이번에는 한 구간 안에서 상수 대신 직선이나 2차 곡선을 맞추어 누적하고 오차의 차수를 비교합니다. 같은 함수·구간·분할에서 비교해야 공식의 차이를 볼 수 있습니다.
함수를 원하는 점에서 호출할 수 있는 상황과 주어진 관측만 있는 상황은 다릅니다. n을 늘릴 때 새로운 함수평가를 계산하는 것과 관측 사이에 가정값을 채우는 것을 서로 다르게 표시합니다.
A function may be evaluable without a simple antiderivative. Approximate its integral by interval contributions. Fix a<b, n equal subintervals and widthΔx. There are n+1 endpoints.
xi=a+iΔx,Δx=nb−a,i=0,…,n
Chapter 10 used left/right rectangles. Now approximate within intervals by lines or quadratics and compare error orders on identical functions, bounds and partitions.
Calling a known function at new points differs from inserting assumed values between fixed observations. Label these situations separately.
한 구간의 두 끝점 높이 평균에 너비를 곱하면 사다리꼴입니다. 내부점은 옆 두 구간에서 한 번씩 사용되지만 전체 끝점은 한 번만 사용됩니다. 따라서 합친 가중치는 양끝 1/2,내부 1입니다.
Tn=Δx[2f(x0)+f(xn)+i=1∑n−1f(xi)]
x²의 [0,1]에서 n=2이면 .5[(0+1)/2+.25]=.375입니다. 정확값 1/3보다 1/24만큼 큽니다. 곡선이 볼록하면 그 사이 직선이 위에 있는 그림과 맞습니다.
표의 값이 순간 함수값이라는 해석에서 직선보간 적분입니다. 이미 구간평균으로 측정한 값에 이 공식을 그대로 적용하는 것은 측정의 역할을 바꿉니다. 더 고급 공식을 사용했다는 이름만으로 더 정확해지지 않습니다.
A trapezoid uses interval width times the average endpoint height. Internal nodes are shared by two intervals; global endpoints appear once, giving weights one and one half.
Tn=Δx[2f(x0)+f(xn)+i=1∑n−1f(xi)]
For x² on [0,1] with n=2, the result is 0.375, exceeding 1/3 by 1/24. This matches secant lines lying above a convex curve.
It integrates a linearly interpolated point-value model. Applying it unchanged to interval-average measurements changes their role, not automatically their accuracy.
기초Foundations
16. 중점값의 합과 관측 가능한 점16. Midpoint values and available evaluations
각 구간의 중점 높이를 선택하면 Mₙ입니다. x²의 [0,1],n=2는 중점 .25,.75에서 값 .0625,.5625를 계산해 합 .3125를 얻습니다. 사다리꼴과 달리 끝점이 아닌 중점의 함수평가가 필요합니다.
Mn=Δxi=1∑nf(2xi−1+xi)
매끄러운 볼록함수에서는 중점이 작게 예측하고 사다리꼴이 크게 예측할 수 있습니다. 두 결과를 무조건 서로 평균내면 정확해진다는 법칙은 아닙니다. 유도와 조건에 맞는 가중치가 필요합니다.
원자료에 중점 관측이 없다면 함수 모형을 호출하거나 새로운 보간을 해야 합니다. 그런 값은 실제 중점 관측으로 부르지 않습니다. 같은 평가횟수와 입력 정보를 기준으로 방법을 비교하세요.
Midpoint quadrature evaluates each interval center. For x²,n=2 on [0,1], heights 0.0625 and 0.5625 give 0.3125. These require different evaluations from endpoint trapezoids.
Mn=Δxi=1∑nf(2xi−1+xi)
For smooth convex functions midpoint estimates can be low while trapezoids are high. Their unqualified average is not universally exact; valid weights need a derivation.
If actual midpoint data are absent, a model evaluation or interpolation is required. Do not label the result a new observation. Compare methods with their information and evaluation costs.
학부Undergraduate
17. Simpson법: 두 구간을 잇는 2차 곡선17. Simpson’s rule joins two intervals with a quadratic
같은 너비 h의 두 구간에서 왼쪽·중앙·오른쪽 값을 맞춘 2차식을 적분합니다. 중앙을 0으로 옮긴 q(t)=A+Bt+Ct²를 적분하면 2hA+2h³C/3입니다. 세 값으로 A,C를 풀면 가중치 1,4,1을 얻습니다.
∫x0x2f(x)dx≈3h[f(x0)+4f(x1)+f(x2)]
Sn=3Δxf(x0)+4i odd∑f(xi)+2i even0<i<n∑f(xi)+f(xn),n≥2 even
n은 구간 수이므로 양의 짝수여야 합니다. 홀수 n이면 마지막 하나를 조용히 버리지 말고 입력을 수정하도록 안내합니다. 정확한 산술에서 3차 이하 다항식은 정확하며 x²에서는 n=2로도 1/3입니다. x⁴에서는 n=2 결과 5/24와 정확값 1/5가 다릅니다.
실습은 x²와 x⁴에서 다섯 방법을 비교합니다. 일치하는 소수 자릿수·정확한 분수·실제 오차를 나누어 보세요. 유한정밀도에서는 이론적으로 정확한 경우에도 작은 반올림 잔차가 남을 수 있습니다.
Fit a quadratic through three equally spaced points spanning two intervals. Integrating q(t)=A+Bt+Ct² around the midpoint gives 2 hA+2h³C/3, leading to weights 1,4,1.
∫x0x2f(x)dx≈3h[f(x0)+4f(x1)+f(x2)]
Sn=3Δxf(x0)+4i odd∑f(xi)+2i even0<i<n∑f(xi)+f(xn),n≥2 even
Require even n≥2; do not silently discard an odd final interval. In exact arithmetic polynomials up to degree three integrate exactly. Thus x² gives 1/3 at n=2, but x⁴ gives 5/24 rather than 1/5.
Compare all five methods on x² and x⁴, separating exact fractions, displayed digits and numerical errors. Symbolic exactness can still leave tiny floating-point residuals.
학부Undergraduate
18. 매끄러움이 있을 때의 적분오차 상계18. Quadrature bounds require smoothness
f가 [a,b]에서 2번 연속 미분 가능하고 |f″|≤M₂이면 사다리꼴·중점의 전역오차에 아래 상계가 있습니다. 등분할이며 이론상 정확한 함수평가를 가정합니다. 구간 길이의 3제곱과 n²를 함께 읽으세요.
∣I−Tn∣≤12n2M2(b−a)3,∣I−Mn∣≤24n2M2(b−a)3
∣I−Sn∣≤180n4M4(b−a)5(f∈C4,∣f(4)∣≤M4,n even)
Simpson 상계는 4차 도함수 조건을 추가합니다. 모서리·점프·특이점에 같은 상수를 그대로 적용할 수 없습니다. 나누는 횟수만 늘렸다는 사실이 조건을 복구하지 않습니다.
가정이 맞으면 n을 2배로 할 때 주요 2차 오차는 약 1/4,4차 오차는 약 1/16로 줄어드는 구간을 기대할 수 있습니다. 반올림·모형·관측오차가 우세한 영역에서는 이 비율이 보이지 않을 수 있습니다. 상계와 경험적 오차추정을 구별하세요.
For C² f with |f″|≤M₂, equal partitions and exact evaluations give the trapezoid/midpoint global bounds below. Read interval length and partition count together.
∣I−Tn∣≤12n2M2(b−a)3,∣I−Mn∣≤24n2M2(b−a)3
∣I−Sn∣≤180n4M4(b−a)5(f∈C4,∣f(4)∣≤M4,n even)
Simpson needs the fourth-derivative assumption. Corners, jumps and singularities cannot inherit the same constants merely by refining n.
When leading errors dominate, doubling n typically reveals factors near 1/4 or 1/16. Rounding, model or observation errors can obscure these rates. Distinguish guaranteed bounds from empirical estimates.
선택 심화Optional extension
19. 선택 심화: 자동분할도 숨은 봉우리를 놓칠 수 있다19. Optional extension: adaptive refinement can miss a hidden peak
자동적분은 거친 합과 세분합의 차이를 보고 더 나눌 곳을 선택할 수 있습니다. 매끄럽고 오차모형이 맞을 때 효율적이지만 두 합이 같다고 언제나 오차 0인 것은 아닙니다.
f(x)=max(1−100|x−0.3|,0)은 [0,1] 안의 .29~.31에만 있는 삼각 봉우리입니다.0,.25,.5,.75,1에서 모두 0이지만 면적은 .01입니다. 이 점들만 본 방법은 0 함수와 봉우리를 구별할 수 없습니다.
이는 알고리즘의 조건을 명시해야 하는 이유입니다. 알려진 끊김·좁은 특징은 구간분할에 반영하고 함수의 매끄러움·변동 상계를 점검합니다. 임의의 연속함수를 유한한 몇 점만 보고 보편적으로 완벽히 적분할 수 있다고 약속하지 않습니다.
Adaptive quadrature compares coarse and refined estimates to select further intervals. Efficient under an appropriate error model, it does not make equal estimates a universal proof of zero error.
The tent f(x)=max(1−100|x−0.3|,0) is supported on 0.29–0.31. It vanishes at 0,0.25,0.5,0.75,1 yet has area 0.01. Those evaluations cannot distinguish it from the zero function.
Supply known breakpoints and inspect smoothness or variation assumptions. No finite fixed sample can promise perfect integration of every arbitrary continuous function.
기초Foundations
20. 분평균 전력의 합은 새 보간을 요구하지 않는다20. Minute-average power does not require a new interpolation
10장의 UCI 전력은 Global_active_power가 분평균 kW입니다. 따라서 측정분마다 Pᵢ/60kWh를 합합니다. 시점 표본을 잇는 사다리꼴보다 덜 고급인 방법이라 그런 것이 아니라 측정값이 이미 각 구간의 평균이기 때문입니다.
첫 세 분평균 1.044,1.520,3.038의 에너지는 합 5.602/60=.093366666…kWh입니다. 이를 세 순간점처럼 잇는 사다리꼴은 두 간격의 면적만 만들어 범위부터 달라집니다. 측정 역할과 시간 범위를 바꿔 놓고 정확도를 비교하면 안 됩니다.
완전한 자료를 시간 단위로 묶어 정확한 가중평균을 구한 뒤 너비를 곱하면 원래 에너지를 보존합니다. 하지만 평균을 각각 반올림해 합하면 다른 값이 될 수 있습니다. 중간 계산과 최종 표시의 반올림을 분리하세요.
UCI Global_active_power is minute-average kW. Sum Pᵢ/60 kWh for measured intervals because they already supply interval averages, not because rectangles are an inferior approximation.
The first three contribute 5.602/60=0.093366666…kWh. Joining the three as instantaneous points creates only two interval areas, changing coverage as well as measurement roles.
Exact weighted averaging into larger complete blocks preserves energy when multiplied by block duration. Rounding each intermediate average before summing can change the total. Separate calculation and display rounding.
기초Foundations
21. 실제 자료를 정수 기준으로 검산하기21. Check actual data against an integer reference
2006-12-17의 유효분 1440개는 각 kW값이 소수 셋째 자리까지 기록됐습니다. 원문 문자열을 1000배해 정수 W로 변환할 수 있습니다. 정수합 3390460W를 60000으로 나누면 기록된 분들의 kWh가 됩니다.
E=60000∑iPi,W=600003390460=3000169523kWh
실습은 같은 선택창의 명시적 순차 float합과 정수 기준의 분수를 대조합니다. 분수는 CSV에 기록된 십진값의 정확한 계산 기준이지 센서가 현실의 전력을 무한정밀도로 측정했다는 뜻은 아닙니다.
양수 전력만 합하는 이 사례는 큰 양·음 상쇄 예제보다 합의 상대 민감도가 작습니다. 작은 반올림차이보다 결측·단위·시간 범위의 오류가 훨씬 클 수 있습니다. 소수 끝자리 차이를 과장해 관측 문제를 가리지 않습니다.
The 1440 valid minutes on 2006-12-17 record kW to three decimal places. Converting decimal strings to integer W gives sum 3390460; dividing by 60000 yields recorded kWh.
E=60000∑iPi,W=600003390460=3000169523kWh
Compare an explicit sequential float sum with the integer/fraction reference for the same window. The reference is exact for recorded decimals, not infinitely precise measurement of reality.
A positive-only sum has less relative cancellation sensitivity than the synthetic signed example. Missingness, units and time coverage may dominate tiny rounding differences.
기초Foundations
22. 높은 계산정밀도로도 결측은 채워지지 않는다22. Higher precision cannot fill missing observations
2007-04-28은 1440행이 있지만 유효 전력은 21분뿐입니다. 관측합 11369/30000≈.378966667kWh를 몇 자리까지 계산해도 하루 총량은 아닙니다.1419분의 정보가 빠져 있습니다.
더 정밀한 합 알고리즘은 알려진 21개 값의 계산오차를 줄일 수 있습니다. 그러나 결측에 0을 넣을지 평균을 가정할지는 별도의 문제입니다. 가정으로 채운 값은 모형이지 관측 결과가 아닙니다.
수치오차·측정오차·모형의 차이·결측의 불확실성을 별도로 보고합니다. CSV의 타임스탬프 개수만으로 유효 관측시간을 판단하지 않습니다.
On 2007-04-28 only 21 of 1440 power values are valid. Computing 11369/30000≈0.378966667 kWh to more digits cannot make it a daily total. Information about 1419 minutes is absent.
More accurate summation can improve arithmetic for known values, not decide how missing minutes behaved. Zero filling or assumed averages create modeled quantities, not observations.
Report numerical, measurement, model and missingness uncertainties separately. Timestamp-row counts alone do not measure valid observed duration.
기초Foundations
23. 실제 연차분과 모형의 작은 h는 별개다23. Actual annual differences differ from small model steps
고정 WorldBank 사본의 한국 실질 1인당 GDP는 2019년 33496.3113815643,2020년 33215.9298928108,2021년 34792.9397214598입니다. 단위는 2015년 불변 USD/명입니다.2020 중심의 관측 전진·중심 기울기는 다음과 같습니다.
단위는 (2015년 불변 USD/명)/년입니다. 두 값은 서로 다른 관측구간을 평균낸 기울기입니다.2020 그 순간의 미분계수를 관측했다는 뜻이 아닙니다. 자료를 보간해 h를 작게 만들어도 새로운 실제 관측이 생기지 않습니다.
2014와 2024 앵커의 지수모형은 원하는 실수 연도에서 계산 가능하므로 작은 h의 차분과 해석적 도함수 kG를 비교할 수 있습니다. 이때의 절단·반올림오차는 선택한 모형 계산에 대한 것입니다. 연간자료의 경제충격·인과효과를 그 수치실험만으로 해석하지 않습니다.
The fixed World Bank copy gives Korean real GDP per capita 33496.3113815643 in 2019,33215.9298928108 in 2020 and 34792.9397214598 in 2021, in constant 2015 US$ per person.
These different interval-average slopes have units (constant 2015 US$ per person) per year. Neither observes an instantaneous 2020 derivative. Interpolation does not create new real measurements.
The 2014/2024-anchor exponential can be queried at arbitrary real years, permitting small-step comparisons with kG. Those truncation/rounding errors concern a chosen model, not identified economic shocks or causal effects.
기초Foundations
24. 같은 문제를 다른 경로로 재현하는 보고서24. Report reproducible checks by different paths
대상함수 또는 자료열·정의역·단위·입력간격·평가횟수·알고리즘·수치형을 기록하세요. 정확한 도함수·적분이 알려진 가정함수로 먼저 검산하고 실제 자료에서는 정수 기준·합계 보존·시간 범위로 확인합니다.
h나 n의 표에는 계산값,절대오차,정의되는 경우 상대오차,이론 상계,계산 실패 여부를 분리합니다. 관측이 아닌 보간·시나리오·모형평가는 다른 라벨을 붙입니다. 오차 0은 그대로 0,정의되지 않은 값은 별도 상태입니다.
Python·R·브라우저는 기본 합 알고리즘이나 초월함수의 마지막 자리에서 차이가 날 수 있습니다. 비트 동일성보다 근거 있는 허용오차·정확한 단위·같은 자료처리 규칙으로 비교합니다. 정수·분수 검산은 입력정밀도를 그대로 보존하도록 만듭니다.
Record function/column, domain, units, step, evaluation count, algorithm and numeric type. First verify on assumed functions with known derivatives/integrals; then check actual data using integer references, conserved totals and coverage.
Separate result, absolute error, relative error where defined, theoretical bound and failure status. Label interpolated/scenario/model values differently from observations.
Python, R and browsers can differ in summation or last transcendental digits. Compare justified tolerances, units and data rules rather than blindly requiring bit identity.
기초Foundations
25. 국가·가구·기업의 수치해석 사례25. Country, household and company numerical cases
국가 사례 · h를 아주 작게 하면 GDP 모형의 미분이 더 정확해질까?
이 실험은 연간 GDP 관측을 잘게 쪼갠 새 자료가 아닙니다.2014·2024년 두 관측으로 정한 가정 지수 모형을2019년 부근에서 계산합니다. 함수가 있으므로, 수치미분 결과와 비교할 해석적 도함수도 알고 있습니다.
양쪽 함수값을 소수 둘째 자리로 반올림하면 같은 값이 됩니다. 차이가 사라진 다음 작은2h로 나누어도 잃은 정보를 되살릴 수 없습니다. 이것은2019년 GDP 변화가 실제로0이었다는 결론이 아닙니다.
먼저 생각한 뒤 풀이 보기: 소수 둘째 자리 반올림과 컴퓨터의 부동소수점 오차는 같은 실험인가요?
서로 구별해야 합니다. 첫째는 우리가 의도적으로 표시 정밀도를 낮춘 실험이고, 이진64 열은 Python의 유한한 이진수 계산에서 생기는 반올림과 소거를 보여줍니다. h=10⁻¹⁶에서는 지수 함수 평가값의 차이가 이 계산 환경에서 사라져0이 됩니다. 고정밀 중심차분의 절단오차가 작아지는 것과 기계 계산의 전체 오차가 항상 작아지는 것은 다릅니다.
고정밀 열은 Decimal70자리, 기계 계산 열은 Python 이진64와 math.exp를 사용했습니다. 실행 환경에 따라 마지막 자릿수는 달라질 수 있습니다. CSV에는 전진차분, 중심차분, 오차와 모형 구조를 이용한 안정된 식 g(2019)sinh(kh)/h도 함께 기록했습니다. 안정된 식이 연간 관측의 한계를 없애 주는 것은 아닙니다.
소수 둘째 자리 표시는 두 비율을 같은 칸으로 반올림합니다. 먼저 반올림한 표시값의 차이는0이지만 공시 입력으로 계산한 비율의 차이는 약−0.00340644퍼센트포인트입니다. 표시용 반올림이 계산 단계에 들어오면서 작은 변화가 사라졌습니다. 변화량 자체를 마지막에2자리로 표시해도0.00이 될 수 있으므로, 작은 차이를 설명할 때는 단위와 충분한 자릿수를 함께 제시해야 합니다.
먼저 생각한 뒤 풀이 보기: 이 작은 차이를 회사의 순간 이익률 도함수라고 불러도 될까요?
두 회계연도 총액 비율의 유한한 차이입니다. FY2022는52주, FY2023은53주이므로 기간이 같다고 가정할 수 없습니다. 실제 연중 변화 경로와 도함수는 이 표로 식별되지 않습니다. 여기서는 계산과 표시 정밀도를 구분하는 원칙을 배웁니다.
계산 과정에서는 원래 공시 숫자와 충분한 내부 정밀도를 보존하고, 표를 보여줄 때 필요한 자릿수로 반올림합시다. 코드에서 생성한 CSV는 계산값과 표시값을 다른 열에 저장합니다.
Country case · Does a tiny h always improve differentiation of the GDP model?
This experiment does not split annual GDP observations into new subannual data. Evaluate the assumed exponential model fixed by 2014 and 2024 anchors near 2019. Because we have a function, its analytic derivative provides a reference for the algorithm.
The slope unit is(2015 USD/person)/year. Compare central differences using high-precision function values against values deliberately rounded to two decimal places before subtraction. That rounding policy is imposed for this experiment.
Central differences of an assumed model, not new subannual observations
h (years)
High-precision evaluation
Python binary 64
Function values rounded 2 dp
1
756.19050540
756.19050540
756.195
0.01
756.12452168
756.12452168
756.500
0.0001
756.12451508
756.12451510
750.000
0.000001
756.12451508
756.12451474
0.000
1 E-10
756.12451508
756.15389505
0.000
1 E-14
756.12451508
727.59576142
0.000
1 E-16
756.12451508
0.00000000
0.000
Think first, then reveal: Why does the rounded-value experiment give zero at h=0.000001 year?
The two function values round to the same number. Dividing their vanished difference by a tiny 2 h cannot restore lost information. It does not show that actual GDP change was zero.
Think first, then reveal: Are two-decimal rounding and machine floating-point error the same experiment?
Keep them separate. The first deliberately reduces displayed precision. The binary 64 column shows finite binary calculation and cancellation in Python. At h=10⁻¹⁶the evaluated exponential differences disappear in this environment. Falling high-precision truncation error does not imply that total machine error always falls.
The high-precision column uses 70-digit Decimal; the machine column uses Python binary 64 and math.exp. Last digits can vary by environment. The CSV also records forward differences, errors and the model-specific stable expression g(2019)sinh(kh)/h. A stable expression cannot remove the limits of annual observations.
Individual/household case · Check record meaning before choosing a sophisticated integration rule
The first three 2006-12-17 UCI values are 1.044,1.520 and 3.038 kW. Each is a one-minute mean. Reinterpreting them as three instantaneous endpoints changes even the duration being calculated.
Same numbers, different data meanings
Interpretation
Covered duration
Result (kWh)
Source:three one-minute means
3 minutes
0.09336667
Hypothetical:three one-minute-spaced endpoints
2 minutes
0.05935
Emeans=(1.044+1.520+3.038)601≈0.09336667kWh
Tnodes=601(21.044+1.520+23.038)=0.05935kWh
The second result concerns hypothetical endpoint samples with a different meaning and duration. It is not a more accurate alternative for the same three-minute recorded energy. Multiply interval means by their own durations.
Group the 1440 minute means by the source’s hour label,60 per group. Keeping group precision and multiplying by one hour preserves 56.50766667 kWh. Rounding all 24 group means to two decimals first instead gives 56.53 kWh.
Order of rounding matters
Calculation order
Final energy (kWh)
Preserve minute means×durations, then sum
56.50766667
Round each hour-group mean to 2 dp first
56.53
Round the original total to 2 dp for display
56.51
Think first, then reveal: How much does premature rounding change the sum?
56.53−56.50766667≈0.02233333kWh
Each group represents one hour, so rounding its mean power changes accumulated energy. Nearest 0.01 kW rounding has at most 0.005 kW error per group;24 one-hour groups give an energy-error bound of 0.12 kWh. The observed calculation difference is smaller.
Think first, then reveal: Does interpolating these 1440 means to seconds improve the measurement?
It adds no new observations, only an assumption about within-interval shape. A finer calculation grid cannot fill the 1419 missing minutes on 2007-04-28. The 21 observed minutes contribute only 0.37896667 kWh, not a daily total.
Company case · Both display 25.31%: has the change disappeared?
Compute Apple’s net-income margins from reported net sales and net income. Extra decimals describe ratios calculated from the published inputs; they do not claim that the underlying accounts were measured to those decimals.
Think first, then reveal: What is lost by subtracting 25.31−25.31=0?
Two-decimal display rounds both ratios into the same bin. The displayed difference is zero, whereas the published-input ratio difference is about−0.00340644 percentage points. Display rounding has entered the calculation and erased a small change. Rounding the final difference to 2 dp can also display 0.00; show the unit and enough digits when discussing small differences.
Think first, then reveal: Can this small difference be called the instantaneous margin derivative?
It is a finite difference between ratios of fiscal-period totals. FY 2022 has 52 weeks and FY 2023 has 53, so do not assume equal durations. Their actual within-year paths and derivatives are not identified by this table. The lesson concerns calculation and display precision, not business forecasts.
Retain the original reported inputs and sufficient internal precision, then round for presentation. The generated CSV keeps calculated and displayed values in separate columns.
Reuse Chapter 10's UCI CSVs/provenance and Chapter 9's World Bank snapshot. No sub-annual observations were newly collected. Explanations and checks are developed for this learning route.
Chapters 13–15 introduce vectors, matrices, linear systems and least squares. Small residuals imply small solution errors only under suitable conditioning. Carry these habits into linear algebra.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
수치적분: 넓이를 계산하는 규칙과 오차Numerical integration: rules and errors
MIT OpenCourseWare · Prof. David Jerison
MIT 공식 강의의 수치적분 설명을 보며 표본, 구간 폭, 근사 규칙을 구별하세요. 본문 안에서 재생되는 영어 영상입니다. 긴 강의이므로 이 장의 사다리꼴·심프슨 설명과 연결해 선택해서 학습할 수 있습니다.Use this official MIT lecture to distinguish sample values, interval widths and numerical rules. The English lecture plays inside the chapter; connect it to the trapezoidal/Simpson discussion.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading이 강의의 끝점 표본 적분 규칙을 분평균 전력에 바로 적용해도 될까요?May we apply endpoint-sample rules directly to minute-averaged power?
생각을 점검하는 해설Check your reasoning
원자료가 무엇을 측정한 값인지 먼저 확인해야 합니다. 구간 평균에는 해당 구간 길이를 곱합니다. 같은 숫자라도 끝점 표본과 구간 평균이면 정보와 계산 기간이 달라집니다.First check the measurement’s meaning. Multiply interval averages by their durations. Endpoint samples and interval means can imply different information and coverage.
루이스 프라이 리처드슨 · 계산하는 예측과 오차를 묻기Lewis Fry Richardson: numerical prediction and error
University of St Andrews · MacTutor History of Mathematics
대학 수학사 아카이브는 수학적 기상 예측을 개척한 리처드슨을 소개합니다. 이 장에서는 계산 격자, 관측 정보, 모형과 오차를 함께 고려해야 한다는 질문에 연결합니다.The university archive introduces Richardson’s pioneering mathematical weather prediction. Connect the history to grids, observations, models and numerical error.
보고 읽은 뒤 답하기Respond after watching/reading계산 격자를 촘촘히 하면 관측의 빈칸도 자동으로 없어질까요?Does refining a calculation grid automatically fill observational gaps?
생각을 점검하는 해설Check your reasoning
아닙니다. 계산 오차를 줄이는 것과 관측·모형의 한계를 줄이는 것은 다릅니다. 촘촘한 격자는 추가 계산 지점을 만들지만 새 측정 자료를 주지는 않습니다.No. Numerical accuracy differs from observational and model validity. A finer grid adds evaluation points, not new measurements.
수치미분: 작은 차이를 빼고 나누는 일의 한계Numerical differentiation: limits of subtracting small differences
Driscoll·Braun · Fundamentals of Numerical Computation (Python) §5.5.2
저자 공식 교재의 Stability와 Example5.5.4를 읽습니다. 국가 사례의 고정밀·표시 반올림·이진64 열과 연결하고, 함수의 규모와 가중치에 따라 오차 상수가 달라짐도 확인하세요.Read the authors’ Stability section and Example 5.5.4. Connect them to the high-precision, display-rounded and binary 64 columns. Error constants depend on function scale and weights.
보고 읽은 뒤 답하기Respond after watching/reading분자 계산 오차가 ε만큼 남으면 작은 h로 나누는 것은 어떤 영향을 줄까요?If numerator calculation retains an error ε, what happens when we divide by small h?
생각을 점검하는 해설Check your reasoning
대략 ε/h 규모로 증폭될 수 있습니다. 절단오차를 줄이려고 h만 계속 작게 만드는 전략은 반올림·소거가 중요해지면 실패할 수 있습니다. 이 크기 추정의 상수와 적용 조건도 확인합니다.It can be amplified on the order of ε/h. Shrinking h to reduce truncation can fail once rounding and cancellation matter. Check the estimate’s constants and assumptions.
중점·사다리꼴·심프슨: 방법과 조건 비교하기Midpoint, trapezoidal and Simpson: compare methods and conditions
OpenStax · Rice University · Calculus Volume2 §3.6
Numerical Integration에서 오차 상계에 필요한 함수의 미분 조건과 심프슨 규칙의 짝수 구간 조건을 확인합니다. 임의의 표에 공식을 붙이기 전에 데이터의 의미와 간격을 검사하세요.Check derivative assumptions behind error bounds and the even-subinterval condition for composite Simpson. Inspect data meaning and spacing before applying a formula.
보고 읽은 뒤 답하기Respond after watching/reading표본3개는 구간3개일까요?Do three sample nodes mean three subintervals?
생각을 점검하는 해설Check your reasoning
같은 간격의 끝점 표본3개는 사이 구간2개입니다. 원문이 각1분 평균3개라면 총3분입니다. 개수만 세지 말고 무엇의 개수인지 확인해야 합니다.Three equally spaced endpoint nodes have two intervening subintervals. Three one-minute averages instead cover three minutes. Identify what is being counted.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 저장과수학Storage versus mathematics
0. 1+0.2가저장된 0.3과다를 수있으면 1/10+2/10=3/10도틀린가?
Does a floating-point mismatch of 0.1+0.2 and 0.3 invalidate 1/10+2/10=3/10?
풀이와 확인할 이유Solution and explanation
아니다. 유한이진저장근사와정확한유리수산술은다르다. 표시를한자리로반올림해도내부값이정확한 1/10로바뀌지는않는다.
No. Approximate binary storage differs from exact rational arithmetic; display rounding does not change the stored value into exact 1/10.
2. 기계간격Machine spacing
1부근 EPSILON=2⁻⁵²는모든크기의수사이간격과같은가?
Is 2⁻⁵² the spacing between representable values at every magnitude?
풀이와 확인할 이유Solution and explanation
아니다. 수의규모에따라절대 간격이달라진다.1부근의간격을모든 입력의고정 절대오차로쓰면안된다. 단위반올림 2⁻⁵³와도구별한다.
No. Absolute spacing changes with magnitude; distinguish the spacing above 1 from unit roundoff 2⁻⁵³.
3. 표시정밀도Display precision
계산결과를소수두자리로보이면저장오차가사라지는가?
Does printing two decimals remove storage error?
풀이와 확인할 이유Solution and explanation
아니다. 표시만짧아진다. 중간값을실제로반올림해다시계산하면또다른오차가생길수있다. 최종 표시와계산과정을구별한다.
No. It shortens the display. Rounding intermediate values before later calculations can introduce additional errors.
No. Arithmetic precision differs from sampling, identification, model and measurement uncertainty.
자료와 출처Data and sources
World Bank · NY.GDP.PCAP.KD · 한국 실질 1인당 GDP · 1980–2024 · 2015년 불변 미국달러 · CC BY 4.0Korean real GDP per capita · 1980–2024 · constant 2015 US dollars · CC BY 4.0
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.