Please what's the code to find the determinant of a 2*2 matrix. Thank you guys | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please what's the code to find the determinant of a 2*2 matrix. Thank you guys

Am a bigginer and I found this forum so interesting, please help me with the codes

24th May 2017, 10:20 PM
IB Maurice
IB Maurice - avatar
2 Answers
+ 3
The determinant is: (a)(c) - (b)(d) Where the matrix is: A = | a b | | c d | So assuming it's a multi-dimentional array: A[0][0] * A[1][1] - A[0][1] * A[1][0] Ps: Please don't ask the same question twice, specially right after asking once.
24th May 2017, 10:57 PM
Rrestoring faith
Rrestoring faith - avatar
0
sorry about asking the question twice am new here and I never knew the the first question went through. please can you write the codes down till the result
26th May 2017, 7:33 AM
IB Maurice
IB Maurice - avatar