RosettaCodeData/Task/Determinant-and-permanent/Mathematica/determinant-and-permanent.math

5 lines
107 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Permanent[m_List] :=
With[{v = Array[x, Length[m]]},
Coefficient[Times @@ (m.v), Times @@ v]
]