Fastest way to compute a determinant from a LaTeX matrix input

388 Views Asked by At

I have this input, coming from a LaTeX document:

\begin{pmatrix}
1 & 2 & 3 & 4 \\ 
-2 & 2 & 3 & 4 \\ 
-1 & 2 & -1 & 3 \\ 
0 & 1 & 3 & 1
\end{pmatrix}

What's the shortest path to get its determinant, with a PC/Windows?

  1. Use an online service (which one) ?

  2. Import it to Maple (my Maple 7 doesn't seem to recognize it when I copy/paste this LaTeX)

  3. Another software available on this platform? (that can do this in a few clicks: import from LaTeX, compute determinant, display result)

Note: I don't want to have to manually copy each coefficient into a new Maple matrix / don't want to manually copy each coefficient into an online tool; I was looking for something that would work with a copy/paste of the LaTeX definition of the matrix.

3

There are 3 best solutions below

0
On BEST ANSWER

Here is an online solution, usable directly in browser:

How to compute a determinant with Javascript, with input as a LaTeX input format?

It looks like this:

enter image description here

0
On

Here's an online Sage Cell that does it. Just replace the example LaTeX matrix with your own.

0
On