def rinterpolate(a_min, a_max, a_value):
    a_range = a_max - a_min
    if a_range == 0:
        a_range = 1.0
    return float(a_range) / (a_value - a_min)
dataset/ETHPy150Open sympy/sympy/sympy/plotting/pygletplot/util.py/rinterpolate/swapped operands of `/`