From 8eae82da2d1482edb4598f334c752f6482c63f5d Mon Sep 17 00:00:00 2001 From: Andrew Cumming Date: Tue, 5 Sep 2023 12:17:06 -0400 Subject: [PATCH] Updates last float exercise --- floats.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/floats.md b/floats.md index 1608996..8c012e0 100644 --- a/floats.md +++ b/floats.md @@ -62,9 +62,9 @@ The size of the roundoff error is set by the number of bits that we have availab Consider the two forms of the function -$$f(x) = {1\over\sqrt{1+x^2}-x} = \sqrt{1+x^2}+x$$ +$$f(x) = \sqrt{1+x^2}-x = {1\over \sqrt{1+x^2}+x}$$ -One of these involves a subtraction, and one doesn't. Try evaluating and plotting these two expressions as a function of $x$. Which is more accurate? Do you see the effects of roundoff error at large values of $x$? +One of these involves a subtraction, and one doesn't. Try evaluating and plotting these two expressions as a function of $x$. Which is more accurate? Do you see the effects of roundoff error at large values of $x$? How do you explain the size of $x$ where roundoff error appears? ```