Examples of gt()


Examples of kodkod.ast.IntExpression.gt()

            case IMPLIES: f=cform(a).not().or(cform(b)); return k2pos(f,x);
            case IN:      return k2pos(isIn(cset(a),b), x);
            case NOT_IN:  return k2pos(isIn(cset(a),b).not(), x);
            case LT:  i=cint(a);  f=i.lt(cint(b));   return k2pos(f,x);
            case LTE: i=cint(a);  f=i.lte(cint(b))return k2pos(f,x);
            case GT:  i=cint(a);  f=i.gt(cint(b));   return k2pos(f,x);
            case GTE: i=cint(a);  f=i.gte(cint(b))return k2pos(f,x);
            case NOT_LT:  i=cint(a);  f=i.lt(cint(b)).not();   return k2pos(f,x);
            case NOT_LTE: i=cint(a);  f=i.lte(cint(b)).not()return k2pos(f,x);
            case NOT_GT:  i=cint(a);  f=i.gt(cint(b)).not();   return k2pos(f,x);
            case NOT_GTE: i=cint(a);  f=i.gte(cint(b)).not()return k2pos(f,x);
View Full Code Here

Examples of lipstone.joshua.parser.types.BigDec.gt()

   
    if (((operation.equals("arcsin") || operation.equals("arccos")) && !(inp.gteq(new BigDec(-1.0)) && inp.lteq(new BigDec(1.0))))
        || ((operation.equals("arcsec") || operation.equals("arccsc")) && (inp.gteq(new BigDec(-1.0)) && inp.lteq(new BigDec(1.0))))
        || (operation.equals("arccosh") && (inp.lt(BigDec.ONE))) || (operation.equals("arctanh") && (inp.abs().gteq(BigDec.ONE)))
        || (operation.equals("arccoth") && (inp.abs().lteq(BigDec.ONE)))
        || (operation.equals("arcsech") && !(inp.gt(BigDec.ZERO) && inp.lteq(BigDec.ONE)))
        || (operation.equals("arccsch") && (inp.eq(BigDec.ZERO)))) {
      return new ConsCell(BigDec.ZERO, ConsType.NUMBER);
    }
   
    while ((operation.equals("sec") || operation.equals("csc") || operation.equals("cot")) && inp.lt(BigDec.ZERO))
View Full Code Here

Examples of lipstone.joshua.parser.types.BigDec.gt()

      return new ConsCell(BigDec.ZERO, ConsType.NUMBER);
    }
   
    while ((operation.equals("sec") || operation.equals("csc") || operation.equals("cot")) && inp.lt(BigDec.ZERO))
      inp = inp.add(new BigDec(Math.PI * 2));
    while ((operation.equals("sec") || operation.equals("csc") || operation.equals("cot")) && inp.gt(new BigDec(Math.PI * 2)))
      inp = inp.subtract(new BigDec(Math.PI * 2));
   
    if (operation.equals("sin"))
      output = new BigDec(ApcomplexMath.sin(inp.getInternal()));
    if (operation.equals("cos"))
View Full Code Here

Examples of lipstone.joshua.parser.types.BigDec.gt()

      if (order.size() > 1)
        return new ArrayList<BigDec>();
      BigDec o = BigDec.ZERO;
      if (order.size() > 0 && order.get(order.getKeys().get(0)).getCarType() == ConsType.NUMBER)
        o = ((BigDec) order.get(order.getKeys().get(0)).getCar());
      if (o.gt(highestOrder))
        highestOrder = o;
      orders.put(term, o);
    }
   
    BigDec modifier = null;
View Full Code Here

Examples of lipstone.joshua.parser.types.BigDec.gt()

   */
  public ConsCell primeFactor(ConsCell equation) throws ParserException {
    ArrayList<Long> factors = new ArrayList<>();
    BigDec num = (BigDec) parser.run(equation).getCar();
    long[] primes = getPrimes(num.getInternal().longValue());
    for (int i = 0; i < primes.length && num.gt(BigDec.ONE); i++) {
      BigDec prime = new BigDec(primes[i]);
      while (num.mod(prime).eq(BigDec.ZERO)) {
        factors.add(primes[i]);
        num = num.divide(prime);
      }
View Full Code Here

Examples of lipstone.joshua.parser.types.BigDec.gt()

    ConsCell var = new ConsCell(vars.get(0), ConsType.IDENTIFIER);
    for (PairedList<ConsCell, ConsCell> value : orders.getValues()) {
      BigDec order = BigDec.ZERO;
      if (value.containsKey(var))
        order = new BigDec(parser.run(value.get(var)).toString());
      if (highest == null || order.gt(highest))
        highest = order;
    }
    return highest;
  }
 
View Full Code Here

Examples of oracle.olapi.data.source.NumberSource.gt()

    NumberSource qualifiedUnits = (NumberSource)
                     units.join(timeHier, "CALENDAR_YEAR_AW::YEAR_AW::4")
                          .join(custHier, "SHIPMENTS_AW::REGION_AW::9")
                          .join(chanHier,"CHANNEL_PRIMARY_AW::CHANNEL_AW::4");
   
    Source paramProdSel = prodHier.select(qualifiedUnits.gt(numParamSrc));
    Source results = prodShortDescr.join(paramProdSel);
   
    try
    {
      prepareAndCommit();
View Full Code Here

Examples of oracle.olapi.data.source.NumberSource.gt()

  {
    println("\nPositions in an Asymmetric Query");

    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    NumberSource units = (NumberSource) mdmUnits.getSource();
    Source unitsGT1 = units.gt(1);

    MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmLevelHierarchy mdmChanHier = (MdmLevelHierarchy)
                                     mdmChanDim.getDefaultHierarchy();
View Full Code Here

Examples of oracle.olapi.data.source.NumberSource.gt()

    // Create the query
    Source querySource2 = prodSel.join(chanSel)
                                 .join(custSel)
                                 .join(timeSel)
                                 .select(units.gt(1));

    //Prepare and commit the current Transaction.
    prepareAndCommit();

    // Create the Cursor. The DataProvider is dp.
View Full Code Here

Examples of org.apache.uima.cas.FSIntConstraint.gt()

  @Deprecated
  public static FSIterator getAnnotationsInSpanIterator(JCas jcas, int type, int beginSpan, int endSpan)
  {
    ConstraintFactory constraintFactory = jcas.getConstraintFactory();
      FSIntConstraint windowConstraint = constraintFactory.createIntConstraint();
      windowConstraint.gt(beginSpan-1);
      windowConstraint.lt(endSpan);
     
      Type annotType = jcas.getCasType(type);
      Feature beginSpanFeature = annotType.getFeatureByBaseName("begin");
      Feature endSpanFeature = annotType.getFeatureByBaseName("end");
View Full Code Here
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.