|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectNumbers.QuadraticEquationTester
public class QuadraticEquationTester
Calculates solutions to the quadratic equation based on user input. If no solutions exist, the program prints out a message. Now also works for complex numbers.
| Field Summary | |
|---|---|
private static double |
d
"A" part of the quadratic equation for real numbers. |
private static double |
e
"B" part of the quadratic equation for real numbers. |
private static double |
f
"C" part of the quadratic equation for real numbers. |
private static double |
g
Real part of complex number "A" |
private static double |
h
Imaginary part of complex number "A" |
private static double |
i
Real part of complex number "B" |
private static double |
j
Imaginary part of complex number "B" |
private static double |
k
Real part of complex number "C" |
private static double |
l
Imaginary part of complex number "C" |
| Constructor Summary | |
|---|---|
QuadraticEquationTester()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static double d
private static double e
private static double f
private static double g
private static double h
private static double i
private static double j
private static double k
private static double l
| Constructor Detail |
|---|
public QuadraticEquationTester()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||