@@ -0,0 +1,513 @@
+package newton;%0A%0A/** Main entry point.%0A * @author Alan Ponte.*/%0Apublic class Main %7B%0A%09%0A%09%0A%09/** Main function.  Returns the result of applying Newton's Method.*/%0A%09public static void main(String%5B%5D args) %7B%0A%09%09int%5B%5D p = %7B1, 2, 3%7D;%0A%09%09int%5B%5D dp = %7B 0, 2, 6%7D;%0A%09%09Polynomial e = new Polynomial(p);%0A%09%09Polynomial de = new Polynomial(dp);%0A%09%09NewtonSolver n = new NewtonSolver(e, de, 0, .00001);%0A%09%09double result = n.solve();%0A%09%09System.out.println(%22The intercept with tolerance of %22 + n.getTolerance() %0A%09%09%09%09+ %22 is %22 + result);%0A%09%7D%0A%0A%7D%0A

Create Main.java