New answers tagged

3 votes

Ordered list of integer vectors

Thanks to LukasLang: ReverseSortBy[Tuples[Range[-nmax, nmax], n], Count[#, 0] &] does the job. Here nmax = $N$ from the ...
user avatar
  • 143
5 votes
Accepted

Dropping non-commutative product in the end

You can simply replace NonCommutativeMultiply by Times as follows: ...
user avatar
  • 25.4k
3 votes
Accepted

substitution $A \mapsto A + \delta_A$ with some operator $\delta_A$

There are many possibilities. Here is an ad-hoc proposal. It uses transformation rules and **. It is limited to what OP asked for. It would have to be extended to ...
user avatar
  • 5,298
9 votes
Accepted

sorting vector elements of a list by certain rules

This can be done using the Graph functionality of Mathematica (note that this approach might not scale really well to long lists): ...
user avatar
  • 25.4k

Top 50 recent answers are included