aboutsummaryrefslogtreecommitdiff
path: root/project3/output.txt
blob: 5030f602be7683432e12f5c97bdf4b9de1b41612 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
Input the values for the first matrix:
Input the matrix value at 1, 1: 1
Input the matrix value at 1, 2: 2
Input the matrix value at 1, 3: 3
Input the matrix value at 2, 1: 4
Input the matrix value at 2, 2: 5
Input the matrix value at 2, 3: 6
Input the matrix value at 3, 1: 7
Input the matrix value at 3, 2: 8
Input the matrix value at 3, 3: 9
Input the values for the second matrix:
Input the matrix value at 1, 1: 4
Input the matrix value at 1, 2: 5
Input the matrix value at 1, 3: 3
Input the matrix value at 2, 1: 2
Input the matrix value at 2, 2: 7
Input the matrix value at 2, 3: 9
Input the matrix value at 3, 1: 2
Input the matrix value at 3, 2: 6
Input the matrix value at 3, 3: 0
                --Matirx Prorgam--
1. Input new matricies
2. Multiply matricies
3. Add matricies
4. Exit Program

Input your choice: 3
The result of adding
[1.000][2.000][3.000]
[4.000][5.000][6.000]
[7.000][8.000][9.000]
with
[4.000][5.000][3.000]
[2.000][7.000][9.000]
[2.000][6.000][0.000]
is:
[5.000][7.000][6.000]
[6.000][12.000][15.000]
[9.000][14.000][9.000]
                --Matirx Prorgam--
1. Input new matricies
2. Multiply matricies
3. Add matricies
4. Exit Program

Input your choice: 2
The result of multiplying
[1.000][2.000][3.000]
[4.000][5.000][6.000]
[7.000][8.000][9.000]
with
[4.000][5.000][3.000]
[2.000][7.000][9.000]
[2.000][6.000][0.000]
is:
[14.000][37.000][21.000]
[38.000][91.000][57.000]
[62.000][145.000][93.000]
                --Matirx Prorgam--
1. Input new matricies
2. Multiply matricies
3. Add matricies
4. Exit Program

Input your choice: 1
Input the values for the first matrix:
Input the matrix value at 1, 1: 3
Input the matrix value at 1, 2: 0
Input the matrix value at 1, 3: -1
Input the matrix value at 2, 1: 0
Input the matrix value at 2, 2: 4
Input the matrix value at 2, 3: 2
Input the matrix value at 3, 1: 5
Input the matrix value at 3, 2: -3
Input the matrix value at 3, 3: 1
Input the values for the second matrix:
Input the matrix value at 1, 1: 1
Input the matrix value at 1, 2: -5
Input the matrix value at 1, 3: 0
Input the matrix value at 2, 1: 4
Input the matrix value at 2, 2: 1
Input the matrix value at 2, 3: -2
Input the matrix value at 3, 1: 0
Input the matrix value at 3, 2: -1
Input the matrix value at 3, 3: 3
                --Matirx Prorgam--
1. Input new matricies
2. Multiply matricies
3. Add matricies
4. Exit Program

Input your choice: 3
The result of adding
[3.000][0.000][-1.000]
[0.000][4.000][2.000]
[5.000][-3.000][1.000]
with
[1.000][-5.000][0.000]
[4.000][1.000][-2.000]
[0.000][-1.000][3.000]
is:
[4.000][-5.000][-1.000]
[4.000][5.000][0.000]
[5.000][-4.000][4.000]
                --Matirx Prorgam--
1. Input new matricies
2. Multiply matricies
3. Add matricies
4. Exit Program

Input your choice: 2
The result of multiplying
[3.000][0.000][-1.000]
[0.000][4.000][2.000]
[5.000][-3.000][1.000]
with
[1.000][-5.000][0.000]
[4.000][1.000][-2.000]
[0.000][-1.000][3.000]
is:
[3.000][-14.000][-3.000]
[16.000][2.000][-2.000]
[-7.000][-29.000][9.000]
                --Matirx Prorgam--
1. Input new matricies
2. Multiply matricies
3. Add matricies
4. Exit Program

Input your choice: 4
Exiting program...
C:\Users\jakno\source\repos\CST116\project3\Debug\project3.exe (process 13744) exited with code 0.
Press any key to close this window . . .