示例#1
0
 public Expression(Variable variable)
 {
     _variable = variable;
        // if (_variable != null) _variable.Value = new List<Expression>();
     _coefficient = 1;
 }
示例#2
0
        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();
        }
示例#3
0
 public Expression(double coefficient, Variable variable)
 {
     _coefficient = coefficient;
     _variable = variable;
        // if (_variable != null) _variable.Value = new List<Expression>();
 }