public BooleanOperand LessThan(NumericOperand other) { return(other != null && Value < other.Value ? Operand.True : Operand.False); }
public BooleanOperand Equality(NumericOperand other) { return(other != null && Math.Abs(other.Value - Value) < 0.00001 ? Operand.True : Operand.False); }
public NumericOperand Modulo(NumericOperand other) { return(other == null ? this : new NumericOperand(value: Value % other.Value)); }
public NumericOperand Power(NumericOperand other) { return(other == null ? this : new NumericOperand(value: Math.Pow(Value, other.Value))); }
public NumericOperand Multiply(NumericOperand other) { return(other == null ? this : new NumericOperand(value: Value *other.Value)); }
public NumericOperand Add(NumericOperand other) { return(other == null ? this : new NumericOperand(value: Value + other.Value)); }