rename cubic_roots() to cubic_equation()
@@ -21,7 +21,7 @@ __all__ = [
"BandedMatrixLU",
"banded_matrix",
"quadratic_equation",
- "cubic_roots",
+ "cubic_equation",
"binomial_coefficient",
]
@@ -435,7 +435,7 @@ def quadratic_equation(
# noinspection PyPep8Naming
-def cubic_roots(a: float, b: float, c: float, d: float) -> List[float]:
+def cubic_equation(a: float, b: float, c: float, d: float) -> List[float]:
if abs(a) < 1e-12:
return sorted(v for v in quadratic_equation(b, c, d) if 0.0 <= v <= 1.0)
A = b / a
