Пример #1
0
def main ():
    L = []

    N = []

    N.append(math.sqrt(2)/2)
    N.append((math.sqrt(2)/2)*-1)

    L.append(N)

    N = []

    N.append(math.sqrt(2)/2)
    N.append(math.sqrt(2)/2)

    L.append(N)
    
    tp1.affichage(L)
    N = tp1.transposition(L)
    tp1.affichage(L)
    tp1.affichage(N)
    
    tp1.affichage(tp1.produit_matrice(N,L))

    print(verifie_orthogonale(L))
Пример #2
0
def verifie_orthogonale (M):
    comp = tp1.compare_matrice(tp1.produit_matrice(tp1.transposition(M),M),tp1.construire_identite(len(M[0])))

    if(comp):
        print("Matrice orthogonale")
        return comp

    print("Matrice non orthogonale")
    return False