public class QuarticRootFerrari extends Object implements QuarticRoot.QuarticSolver
Constructor and Description |
---|
QuarticRootFerrari() |
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(double a,
double b,
double c,
double d,
double e,
double epsilon)
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, double epsilon)
a
- ab
- bc
- cd
- de
- eepsilon
- a precision parameter: when a number |x| ≤ ε, it is considered 0public 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.