public class QuarticRoot extends Object implements PolyRootSolver
| Modifier and Type | Class and Description |
|---|---|
static interface |
QuarticRoot.QuarticSolver
This defines a quartic equation solver.
|
| Constructor and Description |
|---|
QuarticRoot()
Construct a quartic equation solver.
|
QuarticRoot(QuarticRoot.QuarticSolver solver)
Construct a quartic equation solver.
|
| Modifier and Type | Method and Description |
|---|---|
List<Number> |
solve(Polynomial polynomial)
Solve \(ax^4 + bx^3 + cx^2 + dx + e = 0\).
|
public QuarticRoot(QuarticRoot.QuarticSolver solver)
solver - the implementation of a QuarticSolverpublic QuarticRoot()
public List<Number> solve(Polynomial polynomial)
solve in interface PolyRootSolverpolynomial - a quartic equation to be solvedIllegalArgumentException - if the polynomial degree is not 4Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.