We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35774f6 commit 0117eb1Copy full SHA for 0117eb1
linear_algebra/src/polynom_for_points.py
@@ -91,7 +91,7 @@ def points_to_polynomial(coordinates: list[list[int]]) -> str:
91
remove_e: list[str] = solution[count].split("E")
92
if len(remove_e) > 1:
93
solution[count] = remove_e[0] + "*10^" + remove_e[1]
94
- solved += "x^" + str(x - (count + 1)) + "*" + str(solution[count])
+ solved += f"x^{x - (count + 1)}*{solution[count]}"
95
if count + 1 != x:
96
solved += "+"
97
count += 1
0 commit comments