[Code]

ROOT FINDER BY MIDPOINT METHOD

We can find n. root of a number by midpoint method easily & quicly.

What is Midpoint Method?

Python code:

num = 64 root = 3 x0 = 1 x1 = num / root**2 mp = (x0 + x1) * 0.5 x = 0 for i in range(100): x = mp**root if x == num: break if x < num: x0 = mp if x > num: x1 = mp mp = (x0 + x1) * 0.5 print(mp)

Info: All codes are written and solutions found by myself in this site.

Ali Eskici
13.10.2024