public class MathMain {
public static void main(String[] args) {
double[] d = new double[]{6.0,-5.0,1.0};
UnivariateDifferentiableFunction function = new PolynomialFunction(d);
System.out.println(function);
UnivariateDifferentiableSolver solver = new NewtonRaphsonSolver();
List<Double> res = new ArrayList<>();
double solusion = solver.solve(10, function, 0);
res.add(solusion);
solusion++;