Log sum of exponentials
log_sum_exp(x)
x
Vector of quantities
Log sum of exponentials in a numerically stable manner.