“Matrice inverso Python” Código de respuesta

Matriz inversa Python

import numpy as np

# X is the matrix to invert
X_inverted = numpy.linalg.inv(X)
Four Horned Antelope

Matrice inverso Python

>>> import numpy as np
>>> A = np.array(([1,3,3],[1,4,3],[1,3,4]))
>>> A
array([[1, 3, 3],
       [1, 4, 3],
       [1, 3, 4]])
>>> A_inv = np.linalg.inv(A)
>>> A_inv
array([[ 7., -3., -3.],
       [-1.,  1.,  0.],
       [-1.,  0.,  1.]])
Annoying Antelope

Respuestas similares a “Matrice inverso Python”

Preguntas similares a “Matrice inverso Python”

Más respuestas relacionadas con “Matrice inverso Python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código