Ejemplo n.º 1
0
        public UnaryFunctionCall(UnaryFunction f, Computable x)
        {
            this.f = f;
            this.x = x;

            this.type = f.type == ValueType.Indifferent ? x.type : f.type;
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 public SignMinus(Computable comp) {
     this.type = comp.type;
     this.comp = comp;
 }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
        public UnaryFunctionCall(UnaryFunction f, Computable x) {
            this.f = f;
            this.x = x;

            this.type = f.type == ValueType.Indifferent ? x.type : f.type;
        }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 public SignMinus(Computable comp)
 {
     this.type = comp.type;
     this.comp = comp;
 }