public JsonResult InterNewton(InterNewton_Model model)
        {
            InterpolacionLaGrange internew = new InterpolacionLaGrange();

            double[] list1 = new double[model.values.Count];
            double[] list2 = new double[model.values.Count];


            for (int i = 0; i < model.values.Count; i++)
            {
                list1[i] = (Double.Parse(model.values[i].x));
                list2[i] = (Double.Parse(model.values[i].y));
            }
            model.ans     = new Answer_Model();
            model.ans.Res = internew.Calculate(model.inter, list1, list2);
            if (model.ans.Res[0] == 'L')
            {
                model.ans.status = 1;
            }
            else
            {
                model.ans.status = 2;
            }
            return(Json(model.ans));
        }
        public ActionResult InterNewton()
        {
            InterNewton_Model     model    = new InterNewton_Model();
            InterpolacionLaGrange internew = new InterpolacionLaGrange();

            model.ans        = new Answer_Model();
            model.ans.status = 0;
            return(View(model));
        }