Exemple #1
0
        public UnaryFunctionCall(UnaryFunction f, Computable x)
        {
            this.f = f;
            this.x = x;

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

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