0 Members and 2 Guests are viewing this topic.
sum(not(abs(LX-LY
Quote from: blue_bear_94 on July 28, 2013, 02:58:48 pmsum(not(abs(LX-LYIt doesn't work (both examples return 1) and it doesn't surprise me : doing LX-LY (and adding some commands after) would check if there is an equality X(n)=Y(n), but not (X(n),Y(n))=(X(m),Y(m)).
The best I can think of right now is:DelVar ZFor(I,1,dim(LXFor(J,1,I)If (LX(J)=LX(I)) and (LY(I)=LY(J1->ZEndEnd
SortA(L1,L2sum(not(ΔList(L1) or ΔList(L2
cumSum(binomcdf(dim(L1)-1,0→L3SortA(L1,L2,L3min(not(ΔList(L1) or ΔList(L2SortA(L3,L1,L2