mirror of
https://github.com/vale981/phys512
synced 2025-03-05 09:31:42 -05:00
Updates last float exercise
This commit is contained in:
parent
cce5da29c9
commit
8eae82da2d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
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?
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue