\documentclass{article}
\usepackage[cache]{runcode}
\begin{document}
\begin{equation}
\inln{/usr/local/bin/gap -A -b --nointeract -c 'LoadPackage("typeset");'}{x := [ [ 0, 0, 0, 1 ], [ 0, 0, 1, 0 ], [ 0, 1, 0, 0 ], [ 1, 0, 0, 0 ] ];; Typeset(x);}
\end{equation}
\end{document}