-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
29 lines (24 loc) · 832 Bytes
/
Copy pathMain.java
File metadata and controls
29 lines (24 loc) · 832 Bytes
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
public class Main {
public static void main(String[] arg) {
Matrix a = new Matrix(2, 2);
System.out.println("Матрица A:");
a.completion();
a.print_matrix();
Matrix b = new Matrix(2, 2);
System.out.println("Матрица B:");
b.completion();
b.print_matrix();
Matrix t = b.trans();
System.out.println("Транспонированная матрица B:");
t.print_matrix();
Matrix s = b.sum(a);
System.out.println("Матрица S = A + B:");
s.print_matrix();
Matrix d = a.differ(b);
System.out.println("Матрица D = A - B:");
d.print_matrix();
Matrix p = a.product(b);
System.out.println("Матрица P = A * B:");
p.print_matrix();
}
}