← CAE Technical Archive
›
Tools
›
Truncation Error & Order of Accuracy Visualization
Numerical Analysis
JP
|
EN
|
ZH
☰
ホーム
ライブラリ
リクエスト・バグ報告
JP
EN
ZH
Function Settings
Function f(x)
sin(x)
exp(x)
x³
cos(x)
Custom (eval)
Custom function f(x) (JS syntax)
Evaluation point x₀
1.00
-3
3
Derivative order
1st derivative f'(x)
2nd derivative f''(x)
Difference Schemes
Forward difference O(h¹)
Backward difference O(h¹)
Central difference O(h²)
4-point central O(h⁴)
Forward: (f(x+h)-f(x))/h
Backward: (f(x)-f(x-h))/h
Central: (f(x+h)-f(x-h))/(2h)
4-point: (-f(x+2h)+8f(x+h)-8f(x-h)+f(x-2h))/(12h)
Round-off Error Constant
Machine ε ≈
2.22e-16
float64 fixed value
—
Analytical Derivative
—
Optimal h (Central Diff.)
—
Best Achievable Accuracy
2.22e-16
Round-off Floor ε
|Error| vs Step Size h (log-log) — Truncation vs Round-off Balance
Stencil Visualization (near f(x))
Error Decomposition: Truncation vs Round-off (Central Diff.)