Explain the best way to evaluate $f(x,y) = \sqrt{(x^2 + y^2)}$ numerically when $x$ or $y$ are very large.
Does anyone have any insight to this? I'm lost. I usually know how to deal with these types of questions when it involves small numbers but no idea how to go about this.
For the purposes of my example, I'm going to assume that both of your numbers are in the range of $10^{12}$. If you have $6*10^{12}$ for $x$ and $8*10^{12}$ for $y$, then you can factor out $10^{12}$ and end up with $$\sqrt{(10^{12})^2*(6^2+8^2)}.$$
This becomes $$\sqrt{6^2+8^2}*10^{12}.$$
If they are both large numbers, but very far apart in magnitude, then for all practical purposes you are going to get a number that's very close to the larger number and the smaller one might not even make it into your significant figures.