public class LinearRoot extends java.lang.Object implements PolyRootSolver
x = -b/a
| Constructor and Description |
|---|
LinearRoot() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Double> |
solve(Polynomial polynomial)
Solve ax + b = 0.
|
public java.util.List<java.lang.Double> solve(Polynomial polynomial)
solve in interface PolyRootSolverpolynomial - a linear equation to be solvedjava.lang.IllegalArgumentException - if the polynomial degree is not 1