def taylor_sin(x:float, order:int):
    """
    使用泰勒公式近似sinx
    :param x: x
    :param order:阶数，越高越准但越慢
    :return: 结果
    """
    e = x
    s = x
    for i in range(2, order):
        e = -1*e*x*x/((2*i-1)*(2*i-2))
        s += e
    return s