
def Newton_2(c):
    t = 1.0
    while abs(t*t - c) > 1e-6:
        t = (t+c/t)/2
    return t

# f(t) = t^3 -2
def Newton_3(c, t):
    while abs(t*t*t - c) > 1e-6:
        t = (2*t)/3+c/(3*t*t)
    return t

print(Newton_3(2,1))
23ff51454bdeb05ad92989716d79ace22c4a6040
<mask token>

<mask token>


def Newton_3(c, t):
    while abs(t * t * t - c) > 1e-06:
        t = 2 * t / 3 + c / (3 * t * t)
    return t


<mask token>

def Newton_2(c):
    t = 1.0
    while abs(t * t - c) > 1e-06:
        t = (t + c / t) / 2
    return t


def Newton_3(c, t):
    while abs(t * t * t - c) > 1e-06:
        t = 2 * t / 3 + c / (3 * t * t)
    return t


<mask token>

def Newton_2(c):
    t = 1.0
    while abs(t * t - c) > 1e-06:
        t = (t + c / t) / 2
    return t


def Newton_3(c, t):
    while abs(t * t * t - c) > 1e-06:
        t = 2 * t / 3 + c / (3 * t * t)
    return t


print(Newton_3(2, 1))


def Newton_2(c):
    t = 1.0
    while abs(t*t - c) > 1e-6:
        t = (t+c/t)/2
    return t

# f(t) = t^3 -2
def Newton_3(c, t):
    while abs(t*t*t - c) > 1e-6:
        t = (2*t)/3+c/(3*t*t)
    return t

print(Newton_3(2,1))