Determinant and permanent: Difference between revisions

m (→‎{{header|Phix}}: added syntax colouring, marked p2js compatible)
Line 1,936:
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Determinant is a built in function Det
 
[https://reference.wolfram.com/language/ref/Permanent.html Permanent] is also a built in function, but here is a way it could be implemented:
<lang Mathematica>Permanent[m_List] :=
With[{v = Array[x, Length[m]]},
4

edits