Hacker News new | ask | show | jobs
by Tibbes 4695 days ago
Hmmmm, make that:

    def gauss(x):
        return (x+1)*x/2
(consider gauss(11), for example)

You gotta admit, on an article about the difference between integer and floating-point arithmetic, that's pretty ironic!

1 comments

It's odd that the odd numbers slipped my mind. Thank you for your gracious correction.