log1mexp function

Compute loglog(1 - expexp(-a)) and log(1+exp(x))log(1 + exp(x)) Numerically Optimally