redundant code was removed

This commit is contained in:
janis
2022-06-29 17:53:40 +02:00
parent d15fa5dd45
commit bcc9c2dcd1

View File

@@ -30,7 +30,6 @@ if go == 1:
fit = np.polyfit(x, y, 2) fit = np.polyfit(x, y, 2)
print(fit) print(fit)
formula = "F(U) = %sU^2+%sU+%s"%(str(), str(round(float(fit[1]), 4)), str(round(float(fit[2]), 4)))
formula = f"F(U) = {round(float(fit[0]), 4)}U^2+{round(float(fit[1]), 4)}U+{round(float(fit[2]), 4)}" formula = f"F(U) = {round(float(fit[0]), 4)}U^2+{round(float(fit[1]), 4)}U+{round(float(fit[2]), 4)}"
fit_fn = np.poly1d(fit) fit_fn = np.poly1d(fit)