posted 11 years ago
Hello Jeff, the entire code is as follows:
I have omitted v3.print("v3"); with comments // on line 15 in order to get its output, it turned out to be:
v1 = ( 4.00000e+00, 5.00000e+00, 6.00000e+00)^T
v2 = ( 9.00000e+00, 8.00000e+00, 7.00000e+00, 4.00000e+00)^T
v3 = [1.0, 1.0, 1.0, 1.0, 1.0]
a = ( 5.00000e+00, 2.00000e+00, -9.00000e+00)^T
b = [5.0]
c = [9.0]
It can be seen in the output, that the format of v3 with System.out.println("v3 = " + v3); as indicated on line 16, is different as to the digits compared to v1 and v2. What would be the impact of having v3 in this way in comparison to v1 and v2? And also, what is the meaning of the symbols ^T, in the output, at the end of v1, v2 and a?
Best regards.
Ricardo.