Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The "Soft Maximum" function. Parent comment
Let k be 1/max(x,y) so that you have:
g(x,y) = log(exp(1)+exp(min(x,y)/max(x,y))*max(x,y)
There are some issues if the maximum value can be negative or zero, though.
There are no comments on this comment yet.
Let k be 1/max(x,y) so that you have:
g(x,y) = log(exp(1)+exp(min(x,y)/max(x,y))*max(x,y)
There are some issues if the maximum value can be negative or zero, though.