Пример #1
0
 public SubtractExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() - b.Evaluate())
 {
 }
Пример #2
0
 public AddExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() + b.Evaluate())
 {
 }
Пример #3
0
 public MultiplyExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() * b.Evaluate())
 {
 }
Пример #4
0
 protected BinaryExpression(AleaExpression left, AleaExpression right)
 {
     Left  = left;
     Right = right;
 }
Пример #5
0
 public OperatorExpression(AleaExpression left, AleaExpression right, Func <AleaExpression, AleaExpression, double> evaluator)
     : base(left, right)
 {
     Evaluator = evaluator;
 }
Пример #6
0
 public DivideExpression(AleaExpression left, AleaExpression right)
     : base(left, right, (a, b) => a.Evaluate() / b.Evaluate())
 {
 }