import math


def cent_diff(freq1, freq2):
    """Returns the difference between 2 frequencies in cents

    Parameters
    ----------
    freq1 : float
        The first frequency
    freq2 : float
        The second frequency

    Returns
    -------
    float 
        The difference between the 2 frequencies
    """
    return 1200*math.log2(freq2/freq1)