Blog


Management No Comments

Finish this in PY

Finish this in PY

I have part of code of this question plz help me to finish the rest.

x=2

for i in range(100):

xnew = x – (x**2 – 2)/(2*x)

if abs(xnew – x) < 0.001: break

x = xnew

print(“the poot is %.100f at %d iterations.” % (xnew, i))

1.png
2.png

Comments are closed.

Open chat
1
Whatapp Us
Hey? You want your project done, Whatsapp us Now.
Click to Submit a Project