How can you prove that multiplication with floating-point numbers creates more inaccuracy than addition/subtraction?
Advertisements I just started reading about the inaccuracies with writing decimals in binary. Then I was given this challenge: You are given two functions which take float inputs a and b and returns the value a ** 2 – b ** 2. There are two ways to calculate this: (a + b) * (a -… Read More How can you prove that multiplication with floating-point numbers creates more inaccuracy than addition/subtraction?