def _compute_term3(self, C, rrup):
        """
        This computes the term f3 in equation 34, page 1021 but corrected
        according to the erratum.
        """
        f3 = np.zeros_like(rrup)

        idx_between_70_130 = (rrup > 70) & (rrup <= 130)
        idx_greater_130 = rrup > 130

        f3[idx_between_70_130] = (
            C['c9'] * (np.log(rrup[idx_between_70_130]) - np.log(70))
        )

        f3[idx_greater_130] = (
            C['c9'] * (np.log(rrup[idx_greater_130]) - np.log(70)) +
            C['c10'] * (np.log(rrup[idx_greater_130]) - np.log(130))
        )

        return f3
def _compute_term3 ( self , C , rrup ) : f3 = np . zeros_like ( rrup ) idx_between_70_130 = ( rrup > 70 ) & ( rrup <= 130 ) idx_greater_130 = rrup > 130 f3 [ idx_between_70_130 ] = ( C [ 'c9' ] * ( np . log ( rrup [ idx_between_70_130 ] ) - np . log ( 70 ) ) ) f3 [ idx_greater_130 ] = ( C [ 'c9' ] * ( np . log ( rrup [ idx_greater_130 ] ) - np . log ( 70 ) ) + C [ 'c10' ] * ( np . log ( rrup [ idx_greater_130 ] ) - np . log ( 130 ) ) ) return f3
This computes the term f3 in equation 34, page 1021 but corrected
        according to the erratum.