Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Relative error between a real and complex number.

  1. Nov 23, 2008 #1
    1. The problem statement, all variables and given/known data
    So I've got a polynomial with real roots. It turns out that if you perturb one of the coefficients by a small amount, two of the roots end up in the complex plane. Now I want to find the relative error in my computation. For two real numbers, say x1 and x2, I would take
    [tex]rel.err. = {{x1-x2}\over{x1}}[/tex].
    But what do I do if x1 is real and x2 is complex?

    2. Relevant equations

    3. The attempt at a solution
  2. jcsd
  3. Nov 23, 2008 #2


    User Avatar
    Homework Helper

    mabye try
  4. Nov 23, 2008 #3
    Yes. That makes sense. It is the distance between the two values. Works in the complex plane too. Thanks.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook