|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.math.Solvers
public final class Solvers
Constructor Summary | |
---|---|
Solvers()
|
Method Summary | |
---|---|
static double[] |
solveQuadric(double a,
double b,
double c)
Solves the equation ax^2+bx+c=0. |
static double[] |
solveQuartic(double a,
double b,
double c,
double d,
double e)
Solve a quartic equation of the form ax^4+bx^3+cx^2+cx^1+d=0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Solvers()
Method Detail |
---|
public static final double[] solveQuadric(double a, double b, double c)
a
- coefficient of x^2b
- coefficient of x^1c
- coefficient of x^0
null
if
no real solutions existpublic static double[] solveQuartic(double a, double b, double c, double d, double e)
a
- coefficient of x^4b
- coefficient of x^3c
- coefficient of x^2d
- coefficient of x^1e
- coefficient of x^0
null
if no solutions
exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |