TomD
Reputation
3,473
Next privilege 5,000 Rep.
Approve tag wiki edits
 May 2 comment how to apply Alternatives command to delete cases from a list? A minor variant DeleteCases[newD, # | Reverse[#, {2}] , {2}] &@ (Alternatives @@ listF). To delete just one element from each sublist, maybe: Function[x, DeleteCases[x, # | Reverse[#, {2}] , {1}, 1] &@ (Alternatives @@ listF)] /@ newD May 2 comment Plot of a function w.r.t x^2 OK, I see it now! Apr 29 answered Matching a Table and a List and building a new Table Apr 26 comment How to use Except[] inside of Pick[] As does Pick[{1, 2, 3, 4}, {0, 1, 0, 2}, Except[0, _Integer]] Apr 25 answered Number by permutation Apr 24 revised How to generate a limited number of tuples of a list and not all? Added two further example, to clarify equalities Apr 24 comment How to generate a limited number of tuples of a list and not all? @Marilla Thanks for your kind comment. To get the tuples 10 to 20, say, where n =10 could be done as follows: IntegerDigits[#, 2, 10] &@Range[10, 20]. I have updated my answer. Note there is no longer a requirement for Map! I also agree with you that Bill's answer is better (and no doubt faster). I did it the 'lazy' way, as I don't like the 'i's and 'j's. Apr 24 revised How to generate a limited number of tuples of a list and not all? Removed requirement for map. Added some more examples Apr 23 revised How to generate a limited number of tuples of a list and not all? added FromLetterNumber variant Apr 23 answered How to generate a limited number of tuples of a list and not all? Apr 23 comment how to find sum of variable c1+c2+c3 for expression combinations Maybe you require Reduce? Reduce[{a1 + a2 + a3 + b1 + b2 + b3 + c1 + c2 + c3 == 45 && a1 + a2 == 10 && b1 + b2 == 3 && a3 + b3 == 14}][[1]]  gives c1 == 18 - c2 - c3 Apr 22 comment Duplicating and arranging a list Another alternative: Cases[lst, x_ :> Sequence[x, x, x, x]] Apr 22 revised How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? Added third example, and converted units to kDa as suggested by J.M. Apr 21 revised How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? Added Molecular Mass Calculation for bsa Apr 21 comment How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? @ J.M. That is a nice suggestion. Have updated accordingly. Once again, thanks! Apr 21 revised How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? Added Molar mass of water using ChemData, as suggested by J.M. Apr 20 revised How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? fixed heading Apr 20 revised How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? Fixed 3-letter abbreviation, as per J.M comment Apr 20 revised How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? Removed duplication Apr 20 revised How to refer to amino acids by their single-letter abbreviations in ChemicalData[]? Added nameAA