RosettaCodeData/Task/Matrix-arithmetic/Mathematica/matrix-arithmetic.math

5 lines
107 B
Plaintext

Permanent[m_List] :=
With[{v = Array[x, Length[m]]},
Coefficient[Times @@ (m.v), Times @@ v]
]