Skip to content

Commit 062682a

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

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
@@ -90,7 +90,7 @@ def points_to_polynomial(coordinates: list[list[int]]) -> str:
9090
while count < x:
9191
remove_e: list[str] = solution[count].split("E")
9292
if len(remove_e) > 1:
93-
solution[count] = remove_e[0] + "*10^" + remove_e[1]
93+
solution[count] = f"{remove_e[0]}*10^{remove_e[1]}"
9494
solved += f"x^{x - (count + 1)}*{solution[count]}"
9595
if count + 1 != x:
9696
solved += "+"

0 commit comments

Comments
 (0)