double Determinant(double *X, int N){
/*Solution*/
}
int main(void)
{
double X[] = {3, 1, 2,
7, 9, 2,
4, 6, 9};
if (Determinant(X,3) == 164)
{
printf("✓");
}
}
how to find one dimensional array NxN determinant matrix? Can someone help me? thanks in advance.
A determinant is commonly computed in a recursive form for N > 2 as SUM(ai0 * det(Xi * (-1)i) where Xi is the sub-matrix obtained by removing the first column and the i-th line. In C language, it can be written as: