Examples of evaluate()


Examples of jmathexpr.arithmetic.rational.RationalNumber.evaluate()

        evaluated = difference.evaluate();
        System.out.printf("%s = %s%n", difference, evaluated);
        assertEquals(evaluated, new LongRationalNumber(1, 6));
       
        RationalNumber sixEighth = new LongRationalNumber(6, 8);
        evaluated = sixEighth.evaluate();
        System.out.printf("%s = %s%n", sixEighth, evaluated);
        assertEquals(evaluated, new LongRationalNumber(3, 4));
       
        difference = new Subtraction(new LongRationalNumber(2, 3), new LongRationalNumber(1, 6));
        evaluated = difference.evaluate();

Examples of jmathexpr.arithmetic.rational.impl.LongRationalNumber.evaluate()

        evaluated = difference.evaluate();
        System.out.printf("%s = %s%n", difference, evaluated);
        assertEquals(evaluated, new LongRationalNumber(1, 6));
       
        RationalNumber sixEighth = new LongRationalNumber(6, 8);
        evaluated = sixEighth.evaluate();
        System.out.printf("%s = %s%n", sixEighth, evaluated);
        assertEquals(evaluated, new LongRationalNumber(3, 4));
       
        difference = new Subtraction(new LongRationalNumber(2, 3), new LongRationalNumber(1, 6));
        evaluated = difference.evaluate();

Examples of jmathexpr.func.Function.evaluate()

        Variable x = Numbers.variable("x");
        Function exp = new Exp(x);
        System.out.printf("%s%n", exp);
       
        x.setValue(R.create(0));
        evaluated = exp.evaluate();
        System.out.printf("  %s%n", evaluated);
        assertEquals(evaluated, Naturals.one());
       
        x.setValue(R.create(1));
        System.out.printf("  %s%n", exp.evaluate());

Examples of jmathexpr.relation.Equality.evaluate()

        Subtraction diff = new Subtraction(r0d1, div);
       
        RealNumber zero = R.create(0.0);
        Equality zeroTest = new Equality(diff, zero);
       
        evaluated = zeroTest.evaluate();
        System.out.printf("%s : %s%n", zeroTest, evaluated);
        assertEquals(evaluated, TruthValue.True);
       
        Division division = new Division(R.create(10.0), R.create(2.0));
        System.out.printf("Division domain: %s%n", division.domain());

Examples of jmathexpr.set.ElementOf.evaluate()

        System.out.printf("%s = %s%n", difference, evaluated);
        assertEquals(evaluated, new LongRationalNumber(1, 2));
       
        Expression product = new Multiplication(new LongRationalNumber(2, 3), new LongRationalNumber(9, 2));
        ElementOf isNatural = new ElementOf(product, N);
        evaluated = isNatural.evaluate();
        System.out.printf("%s = %s : %s%n", product.evaluate(), isNatural, evaluated);
        assertEquals(evaluated, TruthValue.True);
       
        System.out.println(Q.create("-3.750"));
    }

Examples of joust.utils.tree.evaluation.EvaluationContext.evaluate()

    protected void visitArrayAccess(AJCArrayAccess that) {
        super.visitArrayAccess(that);

        // If the index is something we can evaluate at compile-time, we're okay.
        EvaluationContext context = new EvaluationContext();
        Value index = context.evaluate(that.index);

        if (index == Value.UNKNOWN) {
            failureInducing = true;
            return;
        }

Examples of jsonij.json.jpath.functions.RegexFunction.evaluate()

                                String functionName = functionCondition.getFunctionName();
                                FunctionArgument[] funtionArguments = functionCondition.getArguments();

                                if(functionName.equals("regex")) {
                                    RegexFunction regexFunction = new RegexFunction();
                                    Value result = regexFunction.evaluate(funtionArguments, checkElement);
                                    if(result == null) {
                                        expressionValid = false;
                                        break;
                                    }
                                }

Examples of lotus.domino.Session.evaluate()

          Session session = ExtLibUtil.getCurrentSessionAsSigner();
          String server = session.getServerName();
          String nabCandidates = session.getEnvironmentString("names",true); // There is a possibility that the variable is names=names.nsf,somotherdb.nsf
          String nab = StringUtil.isNotEmpty(nabCandidates) ? StringUtil.splitString(nabCandidates,',')[0] : "names.nsf";
          String formula = "@DbLookup(\"Notes\":\"Cache\";\""+server+"\":\""+nab+"\";\"($Servers)\";\""+server+"\";\"HTTP_SSLPort\";[FAILSILENT])";
          Vector<?> result = session.evaluate(formula);
          if(result.size()==1) {
            Object port = result.get(0);
            if(port instanceof Number) {
              httpsPort = ((Number)port).intValue();
            } else if(port instanceof Number) {

Examples of lupos.rif.IExpression.evaluate()

        index += list.getItems().size();
      if (index < 0 || index >= list.getItems().size())
        return null;
      else {
        final IExpression expr = list.getItems().get(index);
        return (Item) expr.evaluate(arg.binding);
      }
    } else
      return null;
  }

Examples of macromedia.asc.parser.MetaDataNode.evaluate()

    ((ContextStatics) perCompileData).handler = context.getHandler();

    Parser parser = new Parser(context, stringBuffer.toString(), file.getName());
    MetaDataNode metaDataNode = parser.parseMetaData();
    macromedia.asc.parser.MetaDataEvaluator metaDataEvaluator = new macromedia.asc.parser.MetaDataEvaluator();
    metaDataNode.evaluate(context, metaDataEvaluator);

    return context.errorCount() > 0 ? null : new MetaData(metaDataNode);
  }

  // error messages
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.