Root is between 1.37500000000000 and 1.43750000000000
Try changing n=? in the code
0 1.00000000000000
1 2.00000000000000
2 1.50000000000000
3 1.25000000000000
4 1.37500000000000
5 1.43750000000000
6 1.40625000000000
7 1.42187500000000
8 1.41406250000000
9 1.41796875000000
10 1.41601562500000
11 1.41503906250000
12 1.41455078125000
13 1.41430664062500
14 1.41418457031250
15 1.41424560546875
16 1.41421508789062
17 1.41419982910156
18 1.41420745849609
19 1.41421127319336
20 1.41421318054199
21 1.41421413421631
22 1.41421365737915
23 1.41421341896057
24 1.41421353816986
25 1.41421359777451
26 1.41421356797218
27 1.41421355307102
28 1.41421356052160
29 1.41421356424689
30 1.41421356238425
31 1.41421356145293
32 1.41421356191859
33 1.41421356215142
34 1.41421356226783
35 1.41421356232604
36 1.41421356235514
37 1.41421356236970
38 1.41421356237697
39 1.41421356237333
40 1.41421356237151
41 1.41421356237242
42 1.41421356237288
43 1.41421356237311
44 1.41421356237299
45 1.41421356237305
46 1.41421356237308
47 1.41421356237309
48 1.41421356237310
49 1.41421356237310
The real answer is 1.41421356237310. It is getting closer!
Try changing n_steps=?
Initial point: 2
Tangent line: x |--> 4*x - 6
New point: 3/2=1.50000000000000
Root 2=1.41421356237310
1.10517091807565