“Inverse Matrice Python” Kode Jawaban

Inverse Matrix Python

import numpy as np

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

Inverse Matrice 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

Jawaban yang mirip dengan “Inverse Matrice Python”

Pertanyaan yang mirip dengan “Inverse Matrice Python”

Lebih banyak jawaban terkait untuk “Inverse Matrice Python” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya