LESSON 4: ERROR IN CALCULATIONS

Lesson Outcomes

By the end of this lesson, learners will be able to:

  • Understand different types of numbers (rational and irrational)
  • Identify and explain calculation errors
  • Understand rounding errors and their impact
  • Apply accuracy when performing calculations

Lesson Overview

In mathematics and computing, accuracy is extremely important. Even a small mistake in calculations can lead to incorrect results, system failures, or poor decision-making in automation processes.

This lesson focuses on understanding different number types and identifying common errors that occur during calculations, especially rounding errors.

Rational and Irrational Numbers

Numbers are classified into different types based on how they can be expressed.

Rational Numbers

Rational numbers are numbers that can be expressed as a fraction:

P / Q, where Q ≠ 0

They can also be written as:

  • Whole numbers
  • Fractions
  • Terminating decimals
  • Repeating decimals

Examples of Rational Numbers

  • ½
  • ¾
  • -7
  • 3.75

These numbers can be written as ratios and have predictable decimal forms.

Irrational Numbers

Irrational numbers cannot be expressed as a fraction.

They have:

  • Infinite decimal places

  • Non-repeating decimal patterns

Examples of Irrational Numbers

  • √2
  • √3
  • π (pi)
  • e

These numbers continue forever without repeating.

Key Difference

  • Rational numbers → finite or repeating decimals
  • Irrational numbers → infinite, non-repeating decimals

Both types are part of real numbers and can be represented on a number line.

What is a Rounding Error?

A rounding error (or round-off error) occurs when a number is simplified by reducing its decimal places.

This happens when:

  • Numbers are approximated
  • Precision is reduced
  • Calculations use rounded values instead of exact values

Definition

A rounding error is the difference between:

  • The exact value

  • The rounded value used in calculations

Example of Rounding Error

Exact value: 3.14159
Rounded value: 3.14

Difference = 0.00159

This difference is the rounding error.

Why Rounding Errors Matter

Rounding errors may seem small, but they can:

  • Accumulate in repeated calculations
  • Cause incorrect outputs in systems
  • Affect data accuracy
  • Lead to poor decision-making in automation

Sources of Calculation Errors

Errors in calculations can occur due to:

  • Incorrect rounding
  • Misuse of formulas
  • Input errors
  • Misinterpretation of data
  • Loss of precision in programming

Importance of Accuracy in RPA

In Robotic Process Automation:

  • Calculations must be precise
  • Data must be accurate
  • Errors can cause automation failures

For example:

  • Incorrect financial calculations
  • Data mismatches
  • System errors

How to Minimise Errors

To reduce calculation errors:

  • Use correct formulas

  • Avoid unnecessary rounding

  • Double-check calculations

  • Use appropriate data types

  • Validate results


Lesson Summary

In this lesson, learners explored:

  • Rational and irrational numbers
  • Differences between number types
  • Rounding errors and their causes
  • The importance of accuracy in calculations

Understanding errors is critical in ensuring reliable and efficient automation processes.