Example |
VectorLib vlib=new VectorLib(); int[] data={7, 4}; int[] output1=vlib.Calculate(data, 2, "+"); int[] output2=vlib.Calculate(3, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 9 6 Output 2= 21 12 |
Example |
VectorLib vlib=new VectorLib(); double[] data={7.7, 4.6}; double[] output1=vlib.Calculate(data, 2.5, "-"); double[] output2=vlib.Calculate(3.1, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 5.2 2.0999999999999996 Output 2= 23.87 14.26 |
Example |
VectorLib vlib=new VectorLib(); int[] data1={7, 4}; int[] data2={1, 5}; int[] output=vlib.Calculate(data1, data2, "+"); vlib.view("Output", output); |
Output |
Output = 8 9 |
Example |
VectorLib vlib=new VectorLib(); double[] data1={7.1, 4.3}; double[] data2={1.2, 5.6}; double[] output=vlib.Calculate(data1, data2, "-"); vlib.view("Output", output); |
Output |
Output = 5.8999999999999995 -1.2999999999999998 |
Example |
VectorLib vlib=new VectorLib(); int[][] data={{7, 4}, {2, 3}}; int[][] output1=vlib.Calculate(data, 2, "+"); int[][] output2=vlib.Calculate(3, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 9 6 4 5 Output 2= 21 12 6 9 |
Example |
VectorLib vlib=new VectorLib(); double[][] data={{7.7, 4.6}, {2.1, 3.2}}; double[][] output1=vlib.Calculate(data, 2.5, "-"); double[][] output2=vlib.Calculate(3.1, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 5.2 2.0999999999999996 -0.3999999999999999 0.7000000000000002 Output 2= 23.87 14.26 6.510000000000001 9.920000000000002 |
Example |
VectorLib vlib=new VectorLib(); int[][] data={{7, 4}, {2, 3}}; int[] point={2, 4}; int[][] output1=vlib.Calculate(data, point, "+"); int[][] output2=vlib.Calculate(point, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 9 8 4 7 Output 2= 14 16 4 12 |
Example |
VectorLib vlib=new VectorLib(); double[][] data={{7.7, 4.6}, {2.1, 3.2}}; double[] point={2.2, 4.1}; double[][] output1=vlib.Calculate(data, point, "-"); double[][] output2=vlib.Calculate(point, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 9.9 8.7 4.300000000000001 7.3 Output 2= 16.94 18.859999999999996 4.620000000000001 13.12 |
Example |
VectorLib vlib=new VectorLib(); int[][] data={{7, 4}, {2, 3}}; int[][] point={{2, 4}, {3, 1}}; int[][] output1=vlib.Calculate(data, point, "+"); int[][] output2=vlib.Calculate(point, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 9 8 5 4 Output 2= 14 16 6 3 |
Example |
VectorLib vlib=new VectorLib(); double[][] data={{7.7, 4.6}, {2.1, 3.2}}; double[][] point={{2.2, 4.1}, {3.5, 1.8}}; double[][] output1=vlib.Calculate(data, point, "+"); double[][] output2=vlib.Calculate(point, data, "*"); vlib.view("Output 1", output1); vlib.view("Output 2", output2); |
Output |
Output 1= 9.9 8.7 5.6 5.0 Output 2= 16.94 18.859999999999996 7.3500000000000005 5.760000000000001 |