lesson_3 #3
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue