コード例 #1
0
        protected override IFormResult <Vector <double> > InnerHandle(string[] form)
        {
            var equations      = form.Select(Equation.Parse);
            var equationSystem = new EquationsSystem(equations);
            var result         = solver.Solve(equationSystem);

            return(FormResult <Vector <double> > .SuccessResult(result));
        }
コード例 #2
0
 protected override IFormResult <Vector <double> > InnerValidate(string[] form)
 {
     if (form == null)
     {
         return(FormResult <Vector <double> > .ErrorResult("System can not be empty!"));
     }
     return(FormResult <Vector <double> > .SuccessResult(null));
 }