DavidC
Reputation
12,674
88/100 score
 Mar 13 revised Counting the number of a specific type of permutation added 177 characters in body Mar 13 revised Counting the number of a specific type of permutation a bit more general Mar 13 revised Counting the number of a specific type of permutation a bit more general Mar 13 revised Counting the number of a specific type of permutation added 135 characters in body Mar 13 answered Counting the number of a specific type of permutation Mar 12 comment How stretch curly brace on multi-line text? Nice. Is it possible, perhaps by some minor tweak or use of an alignment marker, to align the equal sign of equations of varying lengths? Mar 11 comment How to construct pairs in a list? Wouldn't "all" possible pairs from list2 be this?: Tuples[list1, 2] // Union, yielding {{1, 1}, {1, 2}, {1, 5}, {2, 1}, {2, 2}, {2, 5}, {5, 1}, {5, 2}, {5, 5}} Mar 11 comment Select rows from table by keys Thanks for the correction. Mar 11 comment Select rows from table by keys +1 for the usefulness of seeing a side-by-side comparison of the functions. Mar 11 comment Select rows from table by keys I think in many cases, SortBy[data,{First}] may be simplified to Sort[data]. Mar 10 comment Select rows from table by keys Actually, Sort[data] is sufficient if it's inside the GatherBy. Mar 10 comment Select rows from table by keys Thanks. Yes, Mathematica knows many useful ways to manipulate lists. BTW, if you wanted the id's to appear in standard order, you might do a SortBy[data,First] before GatherBy. Mar 10 revised Select rows from table by keys TableForm added Mar 10 answered Select rows from table by keys Mar 10 comment Select rows from table by keys GatherBy will possibly be of use: reference.wolfram.com/mathematica/ref/GatherBy.html Mar 9 comment Dashed mesh behind 3D object +1 SphericalPlot3D a good choice. Mar 9 revised Dashed mesh behind 3D object clearer image and explanation Mar 9 answered Dashed mesh behind 3D object Mar 8 revised How to draw a higher-genus surface smoother rendering Mar 8 comment How to draw a higher-genus surface I know what you mean. It will look slightly better without the mesh, but the shape is more like a bee-stung 8.