Numerical analisys close numbers question

  • Thread starter Thread starter nhrock3
  • Start date Start date
  • Tags Tags
    Numbers Numerical
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 1K views
nhrock3
Messages
403
Reaction score
0
[tex]y=\sqrt{x^2+1}-1[/tex]
how do we know that there is a subtraction of two close numbers thus making loss of significance?
there is no close numbers there is variable X
it could give use a close result or otherwise

and why multiplying and dividing by [tex]y=\sqrt{x^2+1}+1[/tex]
makes it go away?
 
Physics news on Phys.org
nhrock3 said:
[tex]y=\sqrt{x^2+1}-1[/tex]
how do we know that there is a subtraction of two close numbers thus making loss of significance?
there is no close numbers there is variable X
it could give use a close result or otherwise

and why multiplying and dividing by [tex]y=\sqrt{x^2+1}+1[/tex]
makes it go away?

If x is very close to 0, you're subtracting 1 from a number that is very close to 1.
 
why multiplying and dividing by [tex]y=\sqrt{x^2+1}+1[/tex]
 
we get x^2 in the nominator
and a sum in the denominator
now there is some stuff about relative error
but i don't know what?