Professional Documents
Culture Documents
Linear Algebra
Linear Algebra
When formalizing intuitive concepts, a common approach is to construct a set of
objects (symbols) and a set of rules to manipulate these objects. This is known as
an algebra.
Linear algebra is the study of vectors and certain algebra rules to manipulate
vectors.
Geometric Vectors: The vectors many of us know from school are called “geometric
vectors”, which are usually denoted by a small arrow above the letter, e.g., −→x and
−→y .
Linear Algebra
Vector
System of Linear Equations
System of Linear Equations
System of Linear Equations
Python programming on Matrix
operations
A = [[1, 4, 5, 12],
[-5, 8, 9, 0],
print("A =", A)
for row in A:
column.append(row[2])
a = np.array([1, 2, 3])
import numpy as np
print(A)
print(A)
print(A)
import numpy as np
print(zeors_array)
'''
Output:
[[0. 0. 0.]
[0. 0. 0.]]
'''
A = np.arange(4)
print('A =', A)
B = np.arange(12).reshape(2, 6)
print('B =', B)
'''
Output:
A = [0 1 2 3]
B = [[ 0 1 2 3 4 5]
[ 6 7 8 9 10 11]]
'''
import numpy as np
print(C)
'''
Output:
[[11 1]
[ 8 0]]
'''
import numpy as np
C = A.dot(B)
print(C)
'''
Output:
[[ 36 -12]
[ -1 2]]
'''
import numpy as np
print(A.transpose())
'''
Output:
[[ 1 2 3]
[ 1 1 -3]]
'''
import numpy as np
A = np.array([2, 4, 6, 8, 10])
A = np.array([[1, 4, 5, 12],
[-5, 8, 9, 0],
A = np.array([[1, 4, 5, 12],
[-5, 8, 9, 0],
A = np.array([[1, 4, 5, 12],
[-5, 8, 9, 0],