#线性插值法
def linear(x,x1,x2,y1,y2):
    if x2-x1==0:
        result=y1
    else:
        result=y1+(x-x1)*(y2-y1)/(x2-x1)
    return result
bbe01509133f9bf461cb809e398cb5a7ab5b2969
<mask token>

def linear(x, x1, x2, y1, y2):
    if x2 - x1 == 0:
        result = y1
    else:
        result = y1 + (x - x1) * (y2 - y1) / (x2 - x1)
    return result

#线性插值法
def linear(x,x1,x2,y1,y2):
    if x2-x1==0:
        result=y1
    else:
        result=y1+(x-x1)*(y2-y1)/(x2-x1)
    return result