public UnaryFunctionCall(UnaryFunction f, Computable x) { this.f = f; this.x = x; this.type = f.type == ValueType.Indifferent ? x.type : f.type; }
public Operation(Computable left, Operator op, Computable right) { this.left = left; this.op = op; this.right = right; this.type = left.type == ValueType.Double || right.type == ValueType.Double ? ValueType.Double : ValueType.Integer; }
public BinaryFunctionCall(BinaryFunction f, Computable x, Computable y) { this.f = f; this.x = x; this.y = y; this.type = f.type != ValueType.Indifferent ? f.type : (x.type == ValueType.Double || y.type == ValueType.Double ? ValueType.Double : ValueType.Integer); }
public SignMinus(Computable comp) { this.type = comp.type; this.comp = comp; }