Package org.jazzteam.SolveQuadraticEquation

Examples of org.jazzteam.SolveQuadraticEquation.SolveQuadraticEquation.solveEquation()


public class SolveQuadraticEquationTest {

  @Test
  public void test() {
    SolveQuadraticEquation equation = new SolveQuadraticEquation(1, -5, 4);
    equation.solveEquation();
    assertTrue(equation.root1 == 4 || equation.root1 == 1);
    assertTrue(equation.root2 == 1 || equation.root2 == 4);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.