Examples of multiply()


Examples of JSci.maths.Complex.multiply()

        Complex     zfm = Complex.ONE;
        Complex     zim = Complex.ONE;
        for (int m=0; m<N; m++)    {

            kf = zfm.multiply(c);
            ki = zim.multiply(c);
           
            for (int n=m; n<N; n++)    {
                Kf.setElement(m, n, kf);
                Kf.setElement(n, m, kf);
               
View Full Code Here

Examples of ariba.util.core.ArithmeticOperations.multiply()

            case NONNUMERIC:
                // if this is modified, please modify the getArithmeticOperations
                // in TypeChecker as well
                ops = getArithmeticOperations(v1Type);
                if (ops != null) {
                    return ops.multiply(v1, bigDecValue(v2));
                }
                else {
                    ops = getArithmeticOperations(v2Type);
                    if (ops != null) {
                        return ops.multiply(v2, bigDecValue(v1));
View Full Code Here

Examples of calculator.CalculatorService.multiply()

                client.getService(CalculatorService.class, "CalculatorServiceComponentA");
           
            // Calculate
            System.out.println("3 + 2=" + calculatorService.add(3, 2));
            System.out.println("3 - 2=" + calculatorService.subtract(3, 2));
            System.out.println("3 * 2=" + calculatorService.multiply(3, 2));
            System.out.println("3 / 2=" + calculatorService.divide(3, 2));
           
            if (args.length > 1){
                for (int i=0; i < 1000; i++){
                    // Calculate
View Full Code Here

Examples of calculator.dosgi.CalculatorService.multiply()

            Object service = context.getService(ref);
            Assert.assertNotNull(service);
            CalculatorService calculator = OSGiTestBundles.cast(service, CalculatorService.class);
            System.out.println("2.0 + 1.0 = " + calculator.add(2.0, 1.0));
            System.out.println("2.0 - 1.0 = " + calculator.subtract(2.0, 1.0));
            System.out.println("2.0 * 1.0 = " + calculator.multiply(2.0, 1.0));
            System.out.println("2.0 / 1.0 = " + calculator.divide(2.0, 1.0));
        }
    }

    /**
 
View Full Code Here

Examples of cc.redberry.core.number.Complex.multiply()

            Tensor t = Tensors.pow(entry.getKey(), entry.getValue().build());

            assert !(t instanceof Product);

            if (t instanceof Complex)
                complex = complex.multiply((Complex) t);
            else
                indexlessData.add(t);

        }
View Full Code Here

Examples of cc.redberry.core.number.ComplexElement.multiply()

        ComplexElement factor = ComplexElement.ONE;

        int i, shift = 0, last = 0;
        for (i = 0; i < data.length; ++i)
            if (data[i] instanceof TensorNumber) {
                factor = factor.multiply(((TensorNumber) data[i]).getValue());
                System.arraycopy(data, last, data, last - shift, i - last);
                last = i + 1;
                ++shift;
            }
        System.arraycopy(data, last, data, last - shift, i - last);
View Full Code Here

Examples of cc.redberry.core.tensor.TensorNumber.multiply()

            TensorIterator iterator = tensor.iterator();
            Tensor current;
            while (iterator.hasNext()) {
                current = iterator.next();
                if (current instanceof TensorNumber) {
                    number.multiply((TensorNumber) current);
                    iterator.remove();
                }
            }
            return new SplitNumber(number, tensor.equivalent());
        }
View Full Code Here

Examples of cc.redberry.core.transformations.factor.jasfactor.edu.jas.arith.BigInteger.multiply()

    }

    public BigInteger getOrder() {
        BigInteger order = BigInteger.ONE;
        for (SGSElement element : sgs)
            order = order.multiply(BigInteger.valueOf(element.getOrbitSize()));
        return order;
    }

    public SGSElement[] getStrongGeneratingSet() {
        return sgs;
View Full Code Here

Examples of codechicken.lib.render.uv.UV.multiply()

            UV uv = new UV();
            for(int i = 0; i < vp; i++)
            {
                uv.add(verts[k+i].uv);
            }
            uv.multiply(1D/vp);
            for(int i = 0; i < vp; i++)
            {
                Vertex5 vert = verts[k+i];
                vert.uv.u += vert.uv.u < uv.u ? d : -d;
                vert.uv.v += vert.uv.v < uv.v ? d : -d;
View Full Code Here

Examples of codechicken.lib.vec.Vector3.multiply()

        if (n_colour.y > 1)
            n_colour.y = 1;
        if (n_colour.z > 1)
            n_colour.z = 1;

        n_colour.multiply((colour >>> 24) / 255D, (colour >> 16 & 0xFF) / 255D, (colour >> 8 & 0xFF) / 255D);
        return (int) (n_colour.x * 255) << 24 | (int) (n_colour.y * 255) << 16 | (int) (n_colour.z * 255) << 8 | colour & 0xFF;
    }

    @Override
    public boolean load() {
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.