def null_denominator_conditions(variables):
    size = len(variables)
    conditions = []
    check_set = set()
    for num_of_signs in range(1, size):
        for comb in combinations(range(size), num_of_signs):
            signs = -1*np.ones(size, dtype=int)
            signs[np.array(comb)] = 1
            cond = (signs*variables).sum()
            check = sympy.solve(cond, variables[0])[0]
            if not check in check_set:
                check_set.add(check)
                conditions.append(cond)
            else:
                continue

    return conditions
Calculate the conditions that lead to a null denominator
dataset/ETHPy150Open saullocastro/mapy/mapy/sympytools/denominator.py/null_denominator_conditions