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