def _compute_distance_term(self, C, mag, rrup):
        """
        Compute second and third terms in equation 1, p. 901.
        """
        term1 = C['b'] * rrup
        term2 = - np.log(rrup + C['c'] * np.exp(C['d'] * mag))

        return term1 + term2
def _compute_distance_term ( self , C , mag , rrup ) : term1 = C [ 'b' ] * rrup term2 = - np . log ( rrup + C [ 'c' ] * np . exp ( C [ 'd' ] * mag ) ) return term1 + term2
Compute second and third terms in equation 1, p. 901.