Browse Source

docs(matrix_determinant) correct grammar

1122-buz-zinga
davhojt 2 years ago committed by Dav Hojt
parent
commit
364a16adc8
  1. 6
      subjects/matrix_determinant/README.md

6
subjects/matrix_determinant/README.md

@ -2,7 +2,7 @@
### Instructions
Write a matrix_determinant function that receives a 3x3 matrix ([[isize; 3]; 3]) and returns its determinant (isize).
Create a **function** which receives a 3x3 matrix (`[[isize; 3]; 3]`) and returns its determinant `isize`.
This is how you calculate a 2x2 matrix determinant:
@ -13,7 +13,7 @@ This is how you calculate a 2x2 matrix determinant:
a*d - b*c
```
To calculate a 3x3 matrix determinant (below) you have to take 'a' and multiply it by the determinant of the matrix you get if you get rid of 'a' column and row. Then you subtract the multiplication of 'b' and the determinant of the matrix you get if you get rid of 'b' column and row. And finally, you do the same process for 'c' and add it to the previous result.
To calculate a 3x3 matrix determinant you have to take 'a' and multiply it by the determinant of the matrix you get if you get rid of the 'a' column and the 'a' row. Then you subtract the multiplication of 'b' and the determinant of the matrix you get if you get rid of the 'b' column and row. And finally, you do the same process for 'c' and add it to the previous result.
```sh
|a b c|
@ -21,6 +21,8 @@ To calculate a 3x3 matrix determinant (below) you have to take 'a' and multiply
|g h i|
```
![imagem](determinant-of-a-3x3-matrix-formula-3.png)
### Expected Function
```rs

Loading…
Cancel
Save