Advertisement
brospresident

Untitled

Oct 6th, 2021
1,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import math
  2.  
  3. def normaFrobenius(matrice: list) -> int:
  4.     sumaPatrate = 0
  5.  
  6.     for i in range(len(matrice)):
  7.         for j in range(len(matrice[i])):
  8.             sumaPatrate += matrice[i][j] ** 2
  9.  
  10.     rezultat = math.sqrt(sumaPatrate)
  11.     final = round(rezultat, 3)
  12.     return final
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement