News for hackers. Stuff that matters.
Re:The Misfortunes of a Trio of Mathematicians Using Compute... by GregBuchholz on Friday October 24, 2014 @07:13PM (#8506489)
>tricks like if you are going to add up an array of floating point numbers, you need to sort them first.

...I think you'll want to use a priority queue, with the smallest numbers on top, adding the first two, and then pushing the result back onto the priority queue. Repeat until you only have one item left.

Re:The Misfortunes of a Trio of Mathematicians Using Compute... by the_one_smiley on Friday October 24, 2014 @07:57PM (#8506598)
The number of people who add up arrays of floating point numbers and don't know about Kahan summation is really incredible.