|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.analysis.function.polynomial.root.Quartic
public class Quartic
This is a quartic equation solver.
Solve
ax4 + bx3 + cx2 + dx + e = 0
| Nested Class Summary | |
|---|---|
static interface |
Quartic.QuarticSolver
This defines a quartic equation solver. |
| Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.polynomial.root.Solver |
|---|
Solver.RootFindingException, Solver.Type |
| Constructor Summary | |
|---|---|
Quartic()
Construct a quartic equation solver. |
|
Quartic(Quartic.QuarticSolver solver)
Construct a quartic equation solver using a customized solver. |
|
| Method Summary | |
|---|---|
NumberList |
solve(Polynomial polynomial)
Solve ax4 + bx3 + cx2 + dx + e = 0 |
Solver.Type |
type()
Get the type of the solver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Quartic(Quartic.QuarticSolver solver)
solver - the implementation of QuarticSolver to usepublic Quartic()
| Method Detail |
|---|
public Solver.Type type()
Solver
type in interface Solverpublic NumberList solve(Polynomial polynomial)
ax4 + bx3 + cx2 + dx + e = 0
solve in interface Solverpolynomial - the quartic polynomial to be solved
Number
java.lang.IllegalArgumentException - if the polynomial degree is not 4
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||