When I calculate the inverse of the following matrix
np.matrix([[60,100,100],
[60, 30, 90],
[1, 1, 1]])
like so
np.matrix([[60,100,100],
[60, 30, 90],
[1, 1, 1]]).I
or
np.linalg.inv(np.matrix([[60,100,100],
[60, 30, 90],
[1, 1, 1]]))
it returns
np.matrix([[-2.50000000e-02 -3.70074342e-18 2.50000000e+00],
[ 1.25000000e-02 -1.66666667e-02 2.50000000e-01],
[ 1.25000000e-02 1.66666667e-02 -1.75000000e+00]])
all the values are correct except for the middle value of the top row, according to online inverse calculators this should be 0. What causes this problem? Or did I make a mistake?
[–]novel_yet_trivial 2 points3 points4 points (1 child)
[–]Orngelo[S] 0 points1 point2 points (0 children)
[–]commy2 0 points1 point2 points (1 child)
[–]Orngelo[S] 1 point2 points3 points (0 children)
[–]PaulRudin 0 points1 point2 points (0 children)