static double Val(ICalcExprBase2 x) { return(((CalcExprInterp2)x).Value); }
static double Val(ICalcExprBase2 x) { return ((CalcExprInterp2)x).Value; }
public ICalcExprBase2 Minus(ICalcExprBase2 x, ICalcExprBase2 y) { return(new CalcExprInterp2 { Value = Val(x) - Val(y) }); }
public ICalcExprBase2 Plus(ICalcExprBase2 x, ICalcExprBase2 y) { return new CalcExprInterp2 { Value = Val(x) + Val(y) }; }