Examples of divide()


Examples of jmathexpr.arithmetic.ANumber.divide()

                return new Negation(r).evaluate();
            } else if (r instanceof Division) {
                Division d = (Division) r;
               
                if (d.rhs() instanceof ANumber) { // a x/b = a/b x
                    l = a.divide((ANumber) d.rhs());
                    r = d.lhs();
                }
            } else if (r instanceof Multiplication) {
                Multiplication m = (Multiplication) r;
               
View Full Code Here

Examples of jscicalc.complex.Complex.divide()

  }
  for( Complex o : statMemoryNeg ){
      d = d.subtract( o );
  }
  if( statSize() > 0 ){
     mean.setValue( d.divide( new Complex( statSize(), 0 ) ) );
  } else {
      mean.setError( true );
   }
  return mean;
    }
View Full Code Here

Examples of jscicalc.complex.Complex.divide()

      //if( d < 0 || statSize() < 1 ){
      if( statSize() < 1 ){
    stDev.setError( true );
    return stDev;
      } else {
    stDev.setValue( d.divide( new Complex( statSize(), 0 ) ).sqrt() );
    return stDev;
      }
  } catch( Exception e ){
      stDev.setError( true );
      return stDev;
View Full Code Here

Examples of jscicalc.expression.Product.divide()

    return p.multiply( (Complex)this );
      }
  } else if( this instanceof Variable ){
      if( x instanceof Complex ){
    Product p = new Product( (Variable)this, false );
    return p.divide( (Complex)x );
      } else if( x instanceof Variable ){
    Product p = new Product( (Variable)this, false );
    Product q = new Product( (Variable)x, true );
    return p.multiply( q );
      } else if( x instanceof Sum ){
View Full Code Here

Examples of jscicalc.expression.Product.divide()

    Product p = new Product( (Variable)this, false );
    Product q = new Product( (Sum)x, true );
    return p.multiply( q );
      } else if( x instanceof Product ){
    Product p = new Product( (Variable)this, false );
    return p.divide( (Product)x );
      } else if( x instanceof Expression ){
    Product p = new Product( (Variable)this, false );
    Product q = new Product( (Expression)x, true );
    return p.multiply( q );
      }
View Full Code Here

Examples of jscicalc.expression.Product.divide()

    return p.multiply( q );
      }
  } else if( this instanceof Product ){
      if( x instanceof Complex ){
    Product p = (Product)this;
    return p.divide( (Complex)x );
      } else if( x instanceof Product ){
    return ((Product)this).divide( (Product)x );
      } else if( x instanceof Expression ){
    Product q = new Product( (Expression)x, true );
    return ((Product)this).multiply( q );
View Full Code Here

Examples of jscicalc.expression.Product.divide()

    return ((Product)this).multiply( q );
      }
  } else if( this instanceof Expression ){
      if( x instanceof Complex ){
    Product p = new Product( (Expression)this, false );
    return p.divide( (Complex)x );
      } else if( x instanceof Product ){
    Product p = new Product( (Expression)this, false );
    return p.divide( (Product)x );
      } else if( x instanceof Expression ){
    Product p = new Product( (Expression)this, false );
View Full Code Here

Examples of jscicalc.expression.Product.divide()

      if( x instanceof Complex ){
    Product p = new Product( (Expression)this, false );
    return p.divide( (Complex)x );
      } else if( x instanceof Product ){
    Product p = new Product( (Expression)this, false );
    return p.divide( (Product)x );
      } else if( x instanceof Expression ){
    Product p = new Product( (Expression)this, false );
    Product q = new Product( (Expression)x, true );
    return p.multiply( q );
      }
View Full Code Here

Examples of kodkod.ast.IntExpression.divide()

            case AND: f=cform(a); f=f.and(cform(b)); return k2pos(f,x);
            case OR:  f=cform(a); f=f.or(cform(b))return k2pos(f,x);
            case IFF: f=cform(a); f=f.iff(cform(b)); return k2pos(f,x);
            case PLUSPLUS: s=cset(a); return s.override(cset(b));
            case MUL: i=cint(a); return i.multiply(cint(b));
            case DIV: i=cint(a); return i.divide(cint(b));
            case REM: i=cint(a); return i.modulo(cint(b));
            case SHL: i=cint(a); return i.shl(cint(b));
            case SHR: i=cint(a); return i.shr(cint(b));
            case SHA: i=cint(a); return i.sha(cint(b));
            case PLUS:
View Full Code Here

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

    if (set.size() <= 0)
      return BigDec.ZERO;
    BigDec total = BigDec.ZERO;
    for (BigDec d : set)
      total = total.add(d);
    return total.divide(new BigDec(set.size()));
  }
 
  /**
   * @return the median of this set NOTE: this does not sort the set prior to getting the median
   */
 
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.