def hydraulic_resistance_coefficient(Eg, Re, ke, d):
    """
    :param Eg: Coefficient of hydraulic efficiency. If no data: Eg=0.95 for pipelines with scraper system; Eg=0.92 for
    pipelines without scrapper system. Dimensionless
    :param Re: Reynolds number. Dimensionless
    :param ke: equivalent pipe roughness, m
    :param d: pipe inner diameter, m
    :returns: Hydraulic resistance coefficient, dimensionless
    """
    return (1.05/Eg**2) * 0.067 * (158/Re + 2*ke/d)**0.2