import math


def potential_entropy(dists, power=1):
    """
    Takes a list of numeric distances and returns the sum of the values
    of a function of a distances. The function is e^(-power*distance).  
    """
    return sum([math.e**(-power*d) for d in dists])