Results 1 to 3 of 3

Math Help - Numerical Analysis - Relative Error

  1. #1
    Newbie
    Joined
    Sep 2011
    Posts
    10

    Numerical Analysis - Relative Error

    Hi, I am working on the following problem and need some assistance:

    For what range of values of x will the computed value of f(x) given below have large relative error? Assume 0 \le x \le 100

    f(x) = 10 - \sqrt{(100-x)}

    I know that catostrophic error can occur when subtracting two numbers of similar magnitude, so in our case would we present the most relative error when x is equal to 0 and 100? Or do I need a wider range of numbers?

    Thanks
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Senior Member
    Joined
    Nov 2010
    From
    Clarksville, ARk
    Posts
    398

    Re: Numerical Analysis - Relative Error

    Quote Originally Posted by jnava View Post
    Hi, I am working on the following problem and need some assistance:

    For what range of values of x will the computed value of f(x) given below have large relative error? Assume 0 \le x \le 100

    f(x) = 10 - \sqrt{(100-x)}

    I know that catastrophic error can occur when subtracting two numbers of similar magnitude, so in our case would we present the most relative error when x is equal to 0 and 100? Or do I need a wider range of numbers?

    Thanks
    Assume some reasonable relative error for the square root operation. See what happens for x1 which is close to 100, like 100 minus a few times the relative error times 100. Then see what happens with x2 = 100 - x1, which is a number close to zero.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor chisigma's Avatar
    Joined
    Mar 2009
    From
    near Piacenza (Italy)
    Posts
    2,162
    Thanks
    5

    Re: Numerical Analysis - Relative Error

    Quote Originally Posted by jnava View Post
    Hi, I am working on the following problem and need some assistance:

    For what range of values of x will the computed value of f(x) given below have large relative error? Assume 0 \le x \le 100

    f(x) = 10 - \sqrt{(100-x)}

    I know that catostrophic error can occur when subtracting two numbers of similar magnitude, so in our case would we present the most relative error when x is equal to 0 and 100? Or do I need a wider range of numbers?

    Thanks
    With a simple step You obtain...

    f(x)= 10- \sqrt{100-x} = \frac{x}{10+\sqrt{100-x}} (1)

    ... and any criticity disappears. In particular for 'small' values of x is f(x) \sim \frac{x}{20}...

    Kind regards

    \chi \sigma
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Relative error
    Posted in the Math Topics Forum
    Replies: 3
    Last Post: August 8th 2010, 11:35 AM
  2. Relative and absolute error
    Posted in the Calculus Forum
    Replies: 1
    Last Post: May 3rd 2010, 09:31 AM
  3. Relative Error & Maximum Error
    Posted in the Math Topics Forum
    Replies: 1
    Last Post: March 10th 2010, 02:40 AM
  4. Relative Error through Differentials
    Posted in the Calculus Forum
    Replies: 2
    Last Post: July 6th 2009, 09:02 PM
  5. absolute and relative error
    Posted in the Math Topics Forum
    Replies: 5
    Last Post: September 1st 2008, 09:35 PM

Search Tags


/mathhelpforum @mathhelpforum