Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 18811

Questions on filtering or selecting data based on certain criteria. This is to be used with primary tags such as list-manipulation, string-manipulation or signal-processing, with the primary tag indicating the specific use case.

-1 votes
3 answers
151 views

Create table of elements which belongs to specific sets

I would like to produce elements (preferably by Table or For-If commands) that they belong to specific sets. For example I want to write positive integers from 1 to 100 such that they are $2 \pmod 3$, …
asad's user avatar
  • 848
2 votes

Create table of elements which belongs to specific sets

Using MemberQ I wrote the following code and it worked: A1={2}; A2={3,5,6}; A3={7,8,10} Union[Flatten[Table[If[(MemberQ[A1,Mod[i,3]]==True ||MemberQ[A2,Mod[i,7]]==True||MemberQ[A3,Mod[i,11]]==True),i …
asad's user avatar
  • 848
2 votes
2 answers
78 views

Select subsets from a list based on a criterion?

Assume we have a set of numbers, for instance $A=\{2,3,4,5,6,7,8,9,10\}$ and we are looking for the sums of reciprocals such that they are less than one. I mean I am looking for all $S_B$'s $$ S_B=\su …
asad's user avatar
  • 848
0 votes
1 answer
91 views

Produce result faster than "Table[If[...]]"

I would like to generate a list of output satisfying some condition for instance an equation but faster than the following code: t=4;p=20; Union[Flatten[Table[If[t<=(4a b d-1)c/(a+b)<=t+1,{(4a b d-1) …
asad's user avatar
  • 848