|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectNumbers.ComplexQuadraticEquation
public class ComplexQuadraticEquation
Models the Quadratic Equation using Complex Numbers.
| Field Summary | |
|---|---|
private double |
a
Real 1 |
private double |
b
Imaginary 1 |
private double |
c
Real 2 |
private ComplexNumber |
cn1
The "a" part of the quadratic equation (complex number 1) |
private ComplexNumber |
cn2
The "b" part of the quadratic equation (complex number 2) |
private ComplexNumber |
cn3
The "c" part of the quadratic equation (complex number 3) |
private double |
d
Imaginary 2 |
private double |
e
Real 3 |
private double |
f
Imaginary 3 |
| Constructor Summary | |
|---|---|
ComplexQuadraticEquation(double a,
double b,
double c,
double d,
double e,
double f)
Constructs a new quadratic equation, using complex numbers. |
|
| Method Summary | |
|---|---|
ComplexNumber |
getSolution1()
Finds and returns the first solution to the problem. |
ComplexNumber |
getSolution2()
Finds and returns the first solution to the problem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double a
private double b
private double c
private double d
private double e
private double f
private ComplexNumber cn1
private ComplexNumber cn2
private ComplexNumber cn3
| Constructor Detail |
|---|
public ComplexQuadraticEquation(double a,
double b,
double c,
double d,
double e,
double f)
a - - Complex Number 1, real partb - - Complex Number 1, imaginary partc - - Complex Number 1, real partd - - Complex Number 1, imaginary parte - - Complex Number 1, real partf - - Complex Number 1, imaginary part| Method Detail |
|---|
public ComplexNumber getSolution1()
public ComplexNumber getSolution2()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||