def Newton_Raphson(c, d):
    a = c
    b = 1
    while abs(a - b) > d:
        a = (a + b) / 2
        b = c / a
    return a
