3. Consider the function f(x) = r - 1+x 1- a. Explain why, when evaluated in a floating point system, this expression is subject to a large increase of its relative error (catastrophic cancelation) when x is a very small number. b. Find a formula that is equivalent to the one above in exact mathematics and that does not suffer of catastrophic cancelation.

College Algebra (MindTap Course List)
12th Edition
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:R. David Gustafson, Jeff Hughes
Chapter3: Functions
Section3.3: More On Functions; Piecewise-defined Functions
Problem 99E: Determine if the statemment is true or false. If the statement is false, then correct it and make it...
icon
Related questions
Question
3. Consider the function f(x) = r - :
1+x
1-x
a. Explain why, when evaluated in a floating
point system, this expression is subject to
a large increase of its relative error
(catastrophic cancelation) when x is a
very small number.
b. Find a formula that is equivalent to the
one above in exact mathematics and that
does not suffer of catastrophic
cancelation.
Transcribed Image Text:3. Consider the function f(x) = r - : 1+x 1-x a. Explain why, when evaluated in a floating point system, this expression is subject to a large increase of its relative error (catastrophic cancelation) when x is a very small number. b. Find a formula that is equivalent to the one above in exact mathematics and that does not suffer of catastrophic cancelation.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell