Contents:
Utility function for a log-sum-exponential trick.
lst (list) – list of values.
tot – result of log-sum-exponential calculation.
float