# Questions tagged [sets]

For questions pertaining to sets in the set-theoretical sense. Use "assignment" for questions about the use of the Mathematica functions Set or SetDelayed.

84 questions
Filter by
Sorted by
Tagged with
43 views

### How to stretch this Venn diagram?

I am trying to duplicate (approximately) the following Venn diagram in Mathematica: I have used the top of this page as a guide, which showcases the following Venn diagram triplet: ...
45 views

### ArgMin over intervals and discrete sets

I was playing with ArgMin but I'm not sure how to use it for constrained optimization. For example, ArgMin[x^2, x] returns <...
48 views

51 views

110 views

### How to restrict a list of elements based on the values of their denominators?

EDIT: Why is my post downvoted? Can somone explain? Say we have a list of simplified elements where $$\left\{\left.\frac{(2i+1)^2}{(2z+1)^2}\right|i,z\in\mathbb{Z}\right\}\cap[1,2]$$ and we ...
71 views

### Mathematica functions for dealing with sets of integers [closed]

What are the convenient Mathematica functions, say $Func1$ and $Func2$, that if one inputs a collection of sets of numbers: $$\text{{{1,2},{3,2},{4,1},{1,2},{1,2},{4,1}}}$$ (1) \text{$Func1$[{{1,...
89 views

### Reduce a set expression in Mahematica [closed]

For example: Given $A\subset B$ reduce $\left [ (B\triangle C )\bigcap (A-B)\bigcap (A \triangle B) \right ]\bigcup B$ $A \triangle B$ denotes the symmetric difference of the two sets. Edit ...
94 views

### Generating number pairs satisfying conditions [closed]

I would like to create a list of tuples $(m,k)$ satisfying the conditions $\qquad 26\leq m\leq 500$, $k^2 (m - k)^2 \leq m (m - 1) (3 k + m)$ and $\sqrt{2m}-1/2\leq k\leq \sqrt{2}m$. ...
157 views

### Intersection between a discrete set and a continuous set

I have two sets: $A=\{x| |x|<2\}, B=\{1,2,3\}$ and I know A=Interval[{-2,2}] B={1,2,3} but A \[Intersection] B can ...
51 views

### Check union closedness of set

I have defined two sets set1[n_] := Table[i, {i, 1, n}]; set2[n_] := Subsets[Delete[Subsets[set[n]], 1]]; Now, I want to check whether an element of set2[n] is ...
69 views

### Looking for a package for finite mappings

I am looking for a package for dealing with "mappings" $f\colon A\to B$ where $A$ and $B$ are finite subsets of the set of all possible (inert) expressions. I need operations like: Computing $f(a)$ ...
190 views

### Sets and sums of different elements

Consider the set S={w,x,y,z}. If the set of all possible sums of any three different elements from S is {-1,3,5,8}, then what is the set S? How could I solve this function using Mathematica?
382 views

### Get envelope of a set of functions?

I'm new with mathematica and I'm trying to solve a problem. I have a set of functions in the same variable. Let's say the domain is [0,2]. I would like to get an ordered list of the functions ...
82 views

### Fast way to compute intersection of equivalence classes

There is a set $S=\{1, 2, \dots, m\}$ and $n$ equivalence relations on the set: $a \sim_i b$, where $a,b \in S$, $i=1, \dots, n$. Now we define $a \sim b$ iff $a \sim_i b$ $\forall i=1, \dots, n$. ...
50 views

### Use elements of a convex sets to solve equations [closed]

i try to do sth. like this A=Solve[{x>=5, y>=3, x<13,y<13} ,{x,y}] which gives me a convex set and then ...
82 views

### Having trouble representing null sets within Mathematica

I am having trouble writing the Mathematica code to prove this answer. I was able to derive the answers but through trial and error, ideally I want to derive them through examination of correct code. ...
240 views

### Is there an easy way to do set counting in Mathematica?

I'm using counts of elements in sets, along with logic. So, for instance, I'd like to determine if Count[$a \land \neg b$] = Count [$a$] - Count[$a \land b$] ...where ...