public ActionResult MetodoNewton()
 {
     MetodoNewton_Model model = new MetodoNewton_Model();
     model.function1 = "cos(x)-x";
     model.function2 = "cos(x)-x";
     model.Aproximado = 0.74;
     model.Tol= 0.0001;
     model.Iteraciones=20;
     NewtonRaphson newton = new NewtonRaphson();
     model.ans = new Answer_Model();
     model.ans.Res = newton.newtonRaphson(model.function1, model.function2, model.Aproximado, model.Tol, model.Iteraciones);
     return View(model);
 }
 public ActionResult MetodoNewton(MetodoNewton_Model model, string submitbutton)
 {
     NewtonRaphson newton = new NewtonRaphson();
     model.ans = new Answer_Model();
     model.ans.Res = newton.newtonRaphson(model.function1, model.function2, model.Aproximado, model.Tol, model.Iteraciones);
     if (model.ans.Res[0] == 'L')
         model.ans.status = 1;
     else
         model.ans.status = 2;
     return View(model);
 }