replaced addition to subtraction in a 2x2 matrix

This commit is contained in:
Alexander Zhirov 2021-10-01 19:22:44 +03:00
parent 9b54c0446d
commit cbcf15e5ca
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ double Matrix::calculateDeterminant(Matrix &arr)
}
else if (arr.size() == 2)
{
determinant = arr[0][0] * arr[1][1] + arr[1][0] * arr[0][1];
determinant = arr[0][0] * arr[1][1] - arr[1][0] * arr[0][1];
}
else
{