-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
30 lines (29 loc) · 920 Bytes
/
Copy pathMain.java
File metadata and controls
30 lines (29 loc) · 920 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
30
import java.util.*;
public class Main {
public static void main(String[] arg) {
Matrix A = new Matrix(3, 3);
A.fill();
System.out.println("Matrix A:");
A.print_matrix();
Complex z = A.det();
System.out.print("Determinate A: ");
z.print();
System.out.println('\n');
Matrix T = A.transpose();
System.out.println("Transpose matrix A:");
T.print_matrix();
Matrix B = new Matrix(3, 3);
B.fill();
System.out.println("Matrix B:");
B.print_matrix();
Matrix C = B.sum(A);
System.out.println("Matrix C = A + B:");
C.print_matrix();
Matrix D = A.diff(B);
System.out.println("Matrix D = A - B:");
D.print_matrix();
Matrix E = A.multi(B);
System.out.println("Matrix E = A * B:");
E.print_matrix();
}
}