Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Micromort. Parent comment
To add micromorts:
double add_micromorts(double x, double y) { return -1e6 * expm1( -log1p(x * 1e-6) - log1p(y * 1e-6) ); }
return x + y - x * y * 1e-6;
To add micromorts:
This is not the most accurate way of doing things, it is much simpler to But the formula with expm1 and log1p lets you easily do things like multiply 10 micromorts/day by 10.5 days.