def mk_product_chain(prd, min, max):
    # returns a list of values between [min,max] when multiplied together will
    # yield prd
    if prd >= min and prd <= max:
        return [prd]
    def solve(prd, limit):
        vals = []
        x = int(math.log(prd) / math.log(limit))  # apply log rule for exps
        for i in range(x):
            vals.append(limit)
        y = float(prd) / math.pow(limit, x)
        vals.append(y)
        return vals
    if min < prd:
        return solve(prd, min)
    else:
        return solve(prd, max)
dataset/ETHPy150Open dthpham/butterflow/butterflow/mux.py/mk_product_chain/swapped operands of `<`