2.41 Find determinant of matrix

Given a square matrix, find its determinant. In Mathematica, the Det[] command is used. In Matlab the det() command is used.

Mathematica

mat=Table[RandomReal[],{3},{3}] 
Det[mat]
 

-0.317792605942287
 

 

Matlab

A=rand(3,3); 
det(A)
 

  -0.276653966272994
 

 

Maple

A:=LinearAlgebra:-RandomMatrix(3,3,generator=-1..1.0); 
LinearAlgebra:-Determinant(A)
 

  0.4101995534