I doubt repeatedly adding floating point numbers is a good idea. With every addition the sum increases further away from the addend, and with their growing relative difference problems grow as well.
Just because the algebra works it doesn't guarantee that the code does, too.
Just because the algebra works it doesn't guarantee that the code does, too.