Relative error between a real and complex number.

Pacopag
Messages
193
Reaction score
4

Homework Statement


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
rel.err. = {{x1-x2}\over{x1}}.
But what do I do if x1 is real and x2 is complex?


Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
Pacopag said:

Homework Statement


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
rel.err. = {{x1-x2}\over{x1}}.
But what do I do if x1 is real and x2 is complex?


Homework Equations





The Attempt at a Solution


mabye try
<br /> \frac{|x_1-x_2|}{x_1}<br />
 
Yes. That makes sense. It is the distance between the two values. Works in the complex plane too. Thanks.
 
Hi, I had an exam and I completely messed up a problem. Especially one part which was necessary for the rest of the problem. Basically, I have a wormhole metric: $$(ds)^2 = -(dt)^2 + (dr)^2 + (r^2 + b^2)( (d\theta)^2 + sin^2 \theta (d\phi)^2 )$$ Where ##b=1## with an orbit only in the equatorial plane. We also know from the question that the orbit must satisfy this relationship: $$\varepsilon = \frac{1}{2} (\frac{dr}{d\tau})^2 + V_{eff}(r)$$ Ultimately, I was tasked to find the initial...
The value of H equals ## 10^{3}## in natural units, According to : https://en.wikipedia.org/wiki/Natural_units, ## t \sim 10^{-21} sec = 10^{21} Hz ##, and since ## \text{GeV} \sim 10^{24} \text{Hz } ##, ## GeV \sim 10^{24} \times 10^{-21} = 10^3 ## in natural units. So is this conversion correct? Also in the above formula, can I convert H to that natural units , since it’s a constant, while keeping k in Hz ?
Back
Top