début séance 5

This commit is contained in:
DylanVsn 2020-02-10 08:33:59 +01:00
parent 48adbba2b3
commit 6c538d91b5
3 changed files with 12 additions and 12 deletions

0
2/TP20janvier_Palacios.py Normal file → Executable file
View File

View File

@ -253,15 +253,15 @@ def main(argv):
if __name__ == "__main__": if __name__ == "__main__":
# main(sys.argv[1:]) main(sys.argv[1:])
m = np.array( # m = np.array(
[ # [
[2, 3], # [2, 3],
[3, 2] # [3, 2]
] # ]
) # )
u1, u2, l1, l2 = diagonaliser_matrice22(m) # u1, u2, l1, l2 = diagonaliser_matrice22(m)
u1 /= np.linalg.norm(u1) # u1 /= np.linalg.norm(u1)
u2 /= np.linalg.norm(u2) # u2 /= np.linalg.norm(u2)
print(u1, u2) # print(u1, u2)
print(l1, l2) # print(l1, l2)

0
4/tp4_Voisin.py Normal file → Executable file
View File