public class QuarticRootFerrari extends java.lang.Object implements QuarticRoot.QuarticSolver
| Constructor and Description |
|---|
QuarticRootFerrari() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Number> |
solve(double a,
double b,
double c,
double d,
double e)
Solve \(ax^4 + bx^3 + cx^2 + dx + e = 0\).
|
java.util.List<java.lang.Number> |
solve(double a,
double b,
double c,
double d,
double e,
double epsilon)
Solve \(ax^4 + bx^3 + cx^2 + dx + e = 0\).
|
java.util.List<java.lang.Number> |
solve(Polynomial polynomial)
Solve \(ax^4 + bx^3 + cx^2 + dx + e = 0\).
|
public java.util.List<java.lang.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 java.util.List<java.lang.Number> solve(double a,
double b,
double c,
double d,
double e)
QuarticRoot.QuarticSolversolve in interface QuarticRoot.QuarticSolvera - ab - bc - cd - de - epublic java.util.List<java.lang.Number> solve(Polynomial polynomial)
polynomial - a quartic equation to be solvedjava.lang.IllegalArgumentException - if the polynomial degree is not 4