Losing a small difference

A demonstration program uses decimal arithmetic with three significant digits. It first rounds each exact input, a=8124.6a=8124.6 and b=8123.2b=8123.2, to three significant digits, then subtracts the stored values. The subtraction result is also rounded to three significant digits.


Complete the table for the computed difference d^\hat{d} and the exact difference d=a−bd=a-b. Enter exact decimal numbers. Enter the final error as a percentage relative to the exact difference, without a percent sign.

QuantityValue
Stored a
Stored b
Computed difference
Absolute error in difference
Relative error in difference (%)

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Errors and Error Propagation Questions: