|
Further Examples: Det
This is the determinant of a matrix.
In[1]:= 
Out[1]= 
This is the determinant of the same matrix over the integers modulo .
In[2]:= 
Out[2]= 
This is the determinant of a matrix.
In[3]:= 
Out[3]= 
Det often generates numbers of very large magnitude.
In[4]:= 
Out[4]= 
Such numbers are correctly represented in Mathematica.
In[5]:= 
Out[5]//InputForm= -1.49296802551053203441647383`15.954589770191005*^ 354
This generates a random matrix and times how long that takes on an average machine. The coefficients of the matrix have digits of precision, and lie in the region of the complex plane defined by -10 < Re(z) < 10, -10 < Im(z) < 10.
In[6]:= 
In[7]:= 
Out[7]= 
This computes the determinant of the matrix and again measures the time spent.
In[8]:= 
Out[8]= 
This is a different type of matrix. The entries are Gaussian integers with real and imaginary parts between and .
In[9]:= 
Here is its determinant and the time taken.
In[10]:= 
Out[10]= 
Here is an identity.
In[11]:= 
Out[11]= 
In[12]:= 
|