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 0117eb1 commit 062682aCopy full SHA for 062682a
linear_algebra/src/polynom_for_points.py
@@ -90,7 +90,7 @@ def points_to_polynomial(coordinates: list[list[int]]) -> str:
90
while count < x:
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]
+ solution[count] = f"{remove_e[0]}*10^{remove_e[1]}"
94
solved += f"x^{x - (count + 1)}*{solution[count]}"
95
if count + 1 != x:
96
solved += "+"
0 commit comments