I'm trying to find the fourth root of a number using the newton raphson method, and I get this weird error in my code. Can anyone please help me fix it?
Thanks
while abs(g**4-k)>=epsilon:
builtins.OverflowError: (34, 'Result too large')
def root():
epsilon = 0.01
k = 100
g = k/2.0
count = 1
while abs(g**4-k)>=epsilon:
g = g-(((g**4)-k/(4*g**3)))
count += 1
print("Approximate fourth root of", k, 'is about', g)