|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Solver
All analytical root finding formulae for polynomials implement this interface.
This interface facilitates the implementation of strategy pattern, hence switching implementations dynamically.
| Nested Class Summary | |
|---|---|
static class |
Solver.RootFindingException
RuntimeException thrown when it fails to find a root for a polynomial. |
static class |
Solver.Type
the type of polynomials the solver can solve |
| Method Summary | |
|---|---|
NumberList |
solve(Polynomial polynomial)
Compute the roots for a polynomial. |
Solver.Type |
type()
Get the type of the solver. |
| Method Detail |
|---|
Solver.Type type()
NumberList solve(Polynomial polynomial)
polynomial - the polynomial to be solved
Number
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||