Mat/Wrzodak_Koszarek_Zadania.ipynb
2023-06-14 19:30:34 +02:00

1.6 KiB

Zadanie 4.6
import numpy as np
from sympy import symbols, Matrix
from numpy.linalg import eig

A=np.matrix(QQ,5,3,[2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 31])
print(A.transpose()*A)
print((A.transpose()*A)^(-1))
mm=(A.transpose()*A)^(-1)
mm=(A.transpose()*A)^(-1)*A.transpose()
print(mm)

b1=np.vector([-1,0,1,0,1])
mm1=mm*b1
print(mm1)
print((b1-A*mm1))
b2=np.vector([1,1,1,1,1])
mm2=mm*b2
print(mm2)
print((b2-A*mm2))

b2 in (m.transpose()).image()

Zadanie 4.7

Zadanie 4.9