Mathematical Approximation
Mathematical approximations of continuous functions introduce discrepancy when an infinite process is terminated after a finite number of steps. This discrepancy is known as truncation error and represents the difference between the exact mathematical solution and the value produced by the truncated algorithm. This error is distinct from the rounding errors that occur due to finite precision computer arithmetic, and it cannot be reduced by simply using higher precision data types.
Algorithmic Origin
Numerical algorithms like Taylor series expansions or numerical integration methods rely on discarding higher-order terms to make calculations feasible. The omitted terms represent the lost accuracy, which can be quantified using mathematical remainders. The magnitude of this lost accuracy determines the theoretical limit of the algorithm’s performance.
Step Size
Decreasing the step size or increasing the number of computed terms reduces the discrepancy but raises the computational workload. This relationship requires a balance between execution speed and the desired precision of the output. If the step size is too small, rounding errors from floating-point arithmetic can begin to dominate.
Sensor Precision
Embedded measurement devices run simplified algorithms to convert raw sensor readings into calibrated units under tight time constraints. The truncation error of these quick calculations must remain well below the hardware’s electrical noise floor to ensure it does not affect the overall accuracy of the instrument. This design limit is verified during firmware development.