Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
by definition solution in Creative category for Determinant by veky
from functools import reduce as fold
from itertools import permutations as S_,combinations as choose
from operator import mul as times
ι,Π,sgn=lambda t: range(len(t)),lambda L: fold(times,L,1),lambda x: x//abs(x)
ε=lambda σ: sgn(Π(σ[j]-σ[i] for i,j in choose(ι(σ),2)))
checkio=det=lambda A: sum(ε(σ)*Π(A[i][σ[i]] for i in ι(A)) for σ in S_(ι(A)))
July 12, 2013
Comments: