Floating-point arithmetic

  • Machines do arithmetic with floating-point numbers and return floating-point numbers
  • Elementary machine arithmetic operations results in relative error bounded by ϵmach
  • Sometimes leads to disturbing results (associativity breaks demo)

observation: with floating points, we should not expect two mathematically equivalent results be equal, only relatively close