Examples of MODULO()


Examples of gov.fnal.eag.healpix.BitManipulation.MODULO()

    b = 5.0;
    mod = bm.MODULO(a,b);
    System.out.println("a="+a+" b="+b+" mod="+mod);
    a = 1.0;
    b = 4.0;
    mod = bm.MODULO(a,b);
    System.out.println("a="+a+" b="+b+" mod="+mod);
  }
}
View Full Code Here

Examples of kodkod.ast.IntExpression.modulo()

            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:
                obj = visitThis(a);
View Full Code Here

Examples of ptolemy.data.ScalarToken.modulo()

        env.bind("$mod", _theContext.createFunction(new Function() {
            public Object apply(Object[] args) {
                try {
                    Token a = (Token) args[0];
                    Token b = (Token) args[1];
                    return a.modulo(b);
                } catch (Exception ex) {
                    throw new FunctionCallException("$mod", args[0], args[1],
                            ex);
                }
            }
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.