determinant



Sometimes setting ratmx to true speeds up determinant calculations:

  (%i1) A:genmatrix(lambda([i,j],random(20)),15,15)$

  (%i2) showtime : all$
  Evaluation took 0.0000 seconds (0.0000 elapsed)

  (%i3) determinant(A);
  Evaluation took 13.1700 seconds (13.1700 elapsed)
  (%o3) 326464030619278953

  (%i4) determinant(A),ratmx : true;
  Evaluation took 0.0100 seconds (0.0100 elapsed)
  (%o4) 326464030619278953


Also, triangularize does not preserve the determinant. Another way to speed up determinant calculations is
to not do them (http://www.axler.net/DwD.html )



--Barton