3.4 Equality and Inequality

 

• Some basic relationships are illustrated below with number lines. The shaded dots indicate that the values include the point. Unshaded dots indicate that the values approach but do not equal the value.

 

- rearranging equations with inequalities

 

- When doing calculations there is some roundoff error that result in a number that should be zero but has a finite value. Consider single precision floating point numbers with 7 digits, or double precision with 14, the last digit is equality in numerical calculations using a tolerance. In these cases a tolrance is used between the target and actual values to determine equality.

 

• In Scilab,

• Another Scilab example,