public class LinearRoot extends Object implements PolyRootSolver
x = -b/a
Constructor and Description |
---|
LinearRoot() |
public List<Double> solve(Polynomial polynomial)
solve
in interface PolyRootSolver
polynomial
- a linear equation to be solvedIllegalArgumentException
- if the polynomial degree is not 1Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.