-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.py
109 lines (89 loc) · 1.68 KB
/
Test.py
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
from Matrixes import *
#x = ColumnMatrix(3,5)
#x.GetInPut()
#print(x.matrix)
#print(x)
#y = ConColumn2Row(x)
#y = RowMatrix(3,5)
#y.GetInPut()
#print(y.matrix)
#print(type(y))
#print (matrix2Cmulty(y, -2))
#print(plus2matrix(y,matrix2Cmulty(y, -2)))
#x = ConRow2Column(y)
#print(x)
#print(x)
#print(x.matrix)
#first = ColumnMatrix(3,2)
#first.GetInPut()
#x = ColumnMatrix(3,4)
#x.GetInPut()
#print(x)
#ghg = rref(x)
#print(ghg.procces())
#second = RowMatrix(2,2)
#second.GetInPut()
#print(transpose(first))
#multiplication(y, x)
#print(y)
#x = ChangeRow("c",1,3)
#print(x.action(y))
#print("______________________")
#print(y)
#print("______________________")
#z = MultyRow("M", 2, 10)
#print(z.action(y))
#print("______________________")
#print(y)
#print("______________________")
#t = PlusRow("P" ,3,2,-2)
#print(t.action(y))
#print("______________________")
#print(y)
#print("______________________")
#x = ColumnMatrix(3,6)
#x.GetInPut()
#print(x)
#ghg = rref(x)
#print(ghg.procces())
#print(ghg.rref)
#print(ghg.seq)
#eli = ColumnMatrix(3,3)
#eli.GetInPut()
#print(eli)
#eilm = elimination(eli)
#print(eilm.procces())
#the input
#1 1
#2 -1
#3 0
#6
#3
#9
#
a = RowMatrix(3,2)
#x = RowMatrix(2,1)
b = RowMatrix(3,1)
a.GetInPut()
#x.GetInPut()
b.GetInPut()
#print(multiplication(a,x))
print("__________________")
#eliminate = elimination(a)
#eliminate.procces()
#print(eliminate.seq)
#for i in range(len(eliminate.seq)):
# b = eliminate.seq[i].action(b)
# print(b)
#print("__________________")
#rf= rref(a)
#rf.procces()
#print(rf.seq)
#print(rf.rref)
#print("__________________")
#for i in range(len(rf.seq)):
# b = rf.seq[i].action(b)
# print(b)
#print("__________________")
#print(b)
solveaxeqb(a,b)