I'm not finding the answer to this simply by googling, so I think it has a place on this site, seeing as all the online symbolic determinant calculators don't seem to work right, and so forget about computing the symbolic permanent. By symbolic, I mean in terms of variable $A_{ij}$'s all $n^2$ of them.
What I would like to do is compute the determinant & the permanent for small test cases i.e. for $n \times n$ matrices of SymPy symbols named either via subscript numbering or using up the Latin / Greek letters, for $n \lt 20$.
I'm using this in my research of elementary approaches to computing the permanent.
I would then like to take the formula and display it either at run-time or via copy / paste in rendered LaTeX, so please keep that in mind, i.e. multiplication should just be juxtaposition.
Do you know how to do this? Thank you.
This is of value to undergraduate researchers who'd like to mess around with computing the permanent.
The canonical code for doing the above is this. I've also included how to assign to the individual matrix entries, because to experiment with the permanent, you'll have to be able to do that:
It was not as bad as I expected. I made use mainly of the SymPy documentation.