예제 #1
0
        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);
        }
예제 #2
0
        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);
        }