def result(t):
    if (a == b):
        return a
    elif (t < a):
        return func(0)
    elif (t > b):
        return func(1)
    else:
        return func(((t - a) / (b - a)))
def result(t):
    if (a == b):
        return a
    elif (t < a):
        return func(0)
    elif (t > b):
        return func(1)
    else:
        return func(((t - a) / (b - a)))