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)); }
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)); }