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: Numerical stability

  1. Sep 19, 2005 #1
    Hi, here's my question...We have to determine whether or not the formulas down there are numerically stable for the cases where x >=0 and x<0. I say that the formulas are stable for x>=0 but not for x<0 because you are subracting numbers that could be close to each other. My problem is that I am having a really hard time writing a new formula that is numerically stable for negative x values. See if you can point me down the right path.
    the formulas are:

    u= +-sqrt((x+sqrt(x^2+y^2)))/2)

    v=y/2u

    Thanks for any help that you can give,
    CC
     
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted