If $ x $ and $ y $ have $ n $ significant places, how many significant places do $ x + y $, $ x - y $, $ x \times y $, $ x / y $, $ \sqrt{x} $ have?
I want to evaluate expressions like $ \frac{ \sqrt{ \left( a - b \right) + c } - \sqrt{ c } }{ a - b } $ to $ n $ significant places, where $ a $, $ b $, $ c $ are nonnegative integers. I was thinking about doing it recursively, i.e., if want to evaluate $ x / y $ to $ n $ places, I need to evaluate $ x $, $ y $ to $ m $ places, if want to evaluate $ x - y $ to $ n $ places, I need to evaluate $ x $, $ y $ to $ m $ places...
What book should I be reading?
$x\times y$, $x/y$, and $\sqrt{x}$ all have $n$ significant places. $x+y$ and $x-y$ can have up to $n$ significant places, but depending on cancellation, one of them might have fewer. For example, suppose we know both $\pi$ and $22/7$ to $6$ significant places. We only know $22/7-\pi$ to $3$ significant places: $3.14286-3.14159=0.00127$. However, we know $22/7+\pi$ to $6$ significant places: $3.14286+3.14159=6.28445$