Skip to content

Commit 0117eb1

Browse files
Update linear_algebra/src/polynom_for_points.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 35774f6 commit 0117eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linear_algebra/src/polynom_for_points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def points_to_polynomial(coordinates: list[list[int]]) -> str:
9191
remove_e: list[str] = solution[count].split("E")
9292
if len(remove_e) > 1:
9393
solution[count] = remove_e[0] + "*10^" + remove_e[1]
94-
solved += "x^" + str(x - (count + 1)) + "*" + str(solution[count])
94+
solved += f"x^{x - (count + 1)}*{solution[count]}"
9595
if count + 1 != x:
9696
solved += "+"
9797
count += 1

0 commit comments

Comments
 (0)