Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I have a matrice 2x3 and I want to calculate the determinant of this matrice in c#. Please how I can do that. Thanks.

What I have tried:

I have no idea how to calculate determinant of matrice.
Posted
Updated 3-Jun-18 14:06pm

Quote:
I have no idea how to calculate determinant of matrice.

Wrong place !
In this forum; we help you to fix your code, we don't teach mathematics.
You need to learn how to calculate the determinant of a matrice
Determinant - Wikipedia[^]
Determinant -- from Wolfram MathWorld[^]
Quote:
I have a matrice 2x3

U am not sure determinant exist for non square matrix.
 
Share this answer
 
Comments
Member 13753934 3-Jun-18 17:56pm    
Thanks.
determinant for non square matrix do not exist.
However you probably talk about the matrix for 2D operations, they are really 3x3 but the last row is 0, 0, 1 hence it "simplified" as 2x3.
I think the determinant might simply be M11 * M22 - m21 * m12, as sugeested there btw
Reference Source[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900