public Expression(Variable variable) { _variable = variable; // if (_variable != null) _variable.Value = new List<Expression>(); _coefficient = 1; }
public void Solve(Variable variable) { SubstituteVarsWithItsValue(); MoveAllSameToLeft(variable.Name); SummLeftPart(); MoveAllNotSameToRight(variable.Name); //MoveAllOthersToLeft(variable1); SummRightPart(); if (_rightPart.Count == 0) _rightPart.Add(Expression.NULL); DevideAll(); SortRightPart(); }
public Expression(double coefficient, Variable variable) { _coefficient = coefficient; _variable = variable; // if (_variable != null) _variable.Value = new List<Expression>(); }