Skip to content

Commit 4200bee

Browse files
committed
fixed chart
1 parent c5adee6 commit 4200bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extra/newtonmethod.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def df(x):
2424
x = i
2525

2626
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)}"]))
27+
print(tabulate(vals, numalign="center", tablefmt="orgtbl", headers=["X Values", "Y Values", f"Dist from {(round(x, 3), 0)}"]))
2828
plt.plot([i[0] for i in vals], [i[1] for i in vals], marker="o")
2929
plt.show()
3030

0 commit comments

Comments
 (0)