applications
Class QuadraticRoots

java.lang.Object
  |
  +--applications.QuadraticRoots

public class QuadraticRoots
extends java.lang.Object


Constructor Summary
QuadraticRoots()
           
 
Method Summary
static void main(java.lang.String[] args)
          test program
static void outputRoots(double a, double b, double c)
          The quadratic is ax^2 + bx + c.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadraticRoots

public QuadraticRoots()
Method Detail

outputRoots

public static void outputRoots(double a,
                               double b,
                               double c)
The quadratic is ax^2 + bx + c. a must be nonzero.
Throws:
java.lang.IllegalArgumentException - thrown when coefficient of x^2 is zero

main

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