Numbers
Class QuadraticEquationTester

java.lang.Object
  extended by Numbers.QuadraticEquationTester

public class QuadraticEquationTester
extends java.lang.Object

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.

Author:
Chris Hamner

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

d

private static double d
"A" part of the quadratic equation for real numbers.


e

private static double e
"B" part of the quadratic equation for real numbers.


f

private static double f
"C" part of the quadratic equation for real numbers.


g

private static double g
Real part of complex number "A"


h

private static double h
Imaginary part of complex number "A"


i

private static double i
Real part of complex number "B"


j

private static double j
Imaginary part of complex number "B"


k

private static double k
Real part of complex number "C"


l

private static double l
Imaginary part of complex number "C"

Constructor Detail

QuadraticEquationTester

public QuadraticEquationTester()
Method Detail

main

public static void main(java.lang.String[] args)