|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasswork.QuadtraticEquation
public class QuadtraticEquation
Models a quadratic equation in the form ax^2 + bx + c = 0.
| Field Summary | |
|---|---|
private double |
a
The real part of the first complex number. |
private double |
b
The imaginary part of the first complex number. |
private double |
c
The real part of the second complex number. |
private ComplexNumber |
cn1
The first complex number that is inputted. |
private ComplexNumber |
cn2
The second complex number that is inputted. |
private ComplexNumber |
cn3
The third complex number that is inputted. |
private double |
d
The imaginary part of the second complex number. |
private double |
e
The real part of the third complex number. |
private double |
f
The imaginary part of the third complex number. |
| Constructor Summary | |
|---|---|
QuadtraticEquation(double a,
double b,
double c,
double d,
double e,
double f)
Constructs a quadratic equation by taking three complex numbers in the forms a+bi, c+di, and e+fi. |
|
| Method Summary | |
|---|---|
ComplexNumber |
getSolution1()
|
ComplexNumber |
getSolution2()
|
| 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 QuadtraticEquation(double a,
double b,
double c,
double d,
double e,
double f)
a - The real part of the first complex number.b - The imaginary part of the first complex number.c - The real part of the second complex number.d - The imaginary part of the second complex number.e - The real part of the third complex number.f - The imaginary part of the third complex number.| Method Detail |
|---|
public ComplexNumber getSolution1()
public ComplexNumber getSolution2()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||