def chirp_mass(mass1, mass2):
    """
    Takes two masses and calculates the corresponding chirpmass.
    Args:
        mass1: Mass 1
        mass2: Mass 2

    Returns:
        chirpmass: The chirpmass that corresponds to mass1, mass2
    """

    return (mass1 * mass2) ** (3 / 5) / (mass1 + mass2) ** (1 / 5)