|
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.Cubic
public class Cubic
This is a cubic equation solver.
Solve
ax3 + bx2 + cx + d = 0using cubic root-finding formula, which is based on Cardano's method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.polynomial.root.Solver |
|---|
Solver.RootFindingException, Solver.Type |
| Constructor Summary | |
|---|---|
Cubic()
|
|
| Method Summary | |
|---|---|
NumberList |
solve(Polynomial polynomial)
Solve ax3 + bx2 + cx + d = 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 Cubic()
| Method Detail |
|---|
public Solver.Type type()
Solver
type in interface Solverpublic NumberList solve(Polynomial polynomial)
ax3 + bx2 + cx + d = 0
solve in interface Solverpolynomial - the cubic polynomial to solve
Number
java.lang.IllegalArgumentException - if the polynomial degree is not 3
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||