please ignore this post, I misread algorithm, so the question is not relevant. However, I cannot close post anymore. Please vote to close
I have been using certain algorithm from numerical recipes, which converges to zero via underflow:
// all types are the same floating type
sum = 0
for (i in 0,N)
sum += abs(V[i]);
my question, how does it happen? how does sum of small positive floating-point numbers converge to underflow/zero?
is there some condition where 0 + f = 0 , f > 0
?
algorithm in question is Jacoby, http://www.mpi-hd.mpg.de/astrophysik/HEA/internal/Numerical_Recipes/f11-1.pdf, page 460. It is quite possible I misunderstand how the convergence is achieved, if so, please correct me.
thank you