public class QuarticRootFormula extends Object implements QuarticRoot.QuarticSolver
Constructor and Description |
---|
QuarticRootFormula() |
Modifier and Type | Method and Description |
---|---|
List<Number> |
solve(double a,
double b,
double c,
double d,
double e)
Solve \(ax^4 + bx^3 + cx^2 + dx + e = 0\).
|
List<Number> |
solve(Polynomial polynomial)
Solve \(ax^4 + bx^3 + cx^2 + dx + e = 0\).
|
public List<Number> solve(double a, double b, double c, double d, double e)
QuarticRoot.QuarticSolver
solve
in interface QuarticRoot.QuarticSolver
a
- ab
- bc
- cd
- de
- epublic List<Number> solve(Polynomial polynomial)
polynomial
- a quartic equation to be solvedIllegalArgumentException
- if the polynomial degree is not 4Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.