We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5adee6 commit 4200beeCopy full SHA for 4200bee
extra/newtonmethod.py
@@ -24,7 +24,7 @@ def df(x):
24
x = i
25
26
vals = add_dist(vals, (x, f(x)))
27
- print(tabulate(vals, numalign="center", tablefmt="orgtbl", headers=["X Values", "Y Values", f"Dist from {(round(x, 2), 0)}"]))
+ print(tabulate(vals, numalign="center", tablefmt="orgtbl", headers=["X Values", "Y Values", f"Dist from {(round(x, 3), 0)}"]))
28
plt.plot([i[0] for i in vals], [i[1] for i in vals], marker="o")
29
plt.show()
30
0 commit comments