|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.math.Quadratic
public final class Quadratic
Provides a quadratic equation. The quadratic equation is Ax^2 + Bx + C = 0.
Constructor Summary | |
---|---|
Quadratic(double a,
double b,
double c)
Construct this object using the given parameters. |
Method Summary | |
---|---|
double |
evaluate(double x)
Return the result of using the given parameter in the quadratic equation Ax^2 + Bx + C. |
double |
getA()
Return the A component. |
double |
getB()
Return the B component. |
double |
getC()
Return the C component. |
double[] |
solutions()
Return the solution(s) of this quadratic equation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Quadratic(double a, double b, double c)
Method Detail |
---|
public double getA()
public double getB()
public double getC()
public double evaluate(double x)
x
- Input parameter.public double[] solutions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |