def DIVIDE(x, y):
    """
    Divides one number by another and returns the result.
    See https://docs.mongodb.com/manual/reference/operator/aggregation/divide/
    for more details
    :param x: The number or field of number (is the dividend)
    :param y: The number or field of number (is the divisor)
    :return: Aggregation operator
    """
    return {'$divide': [x, y]}