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.

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
81 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)$ ...
masterxilo's user avatar
  • 5,739
3 votes
0 answers
66 views

Symbolic Set Difference

Suppose I have two symbolic set containing 2-points like A={(m,n)| for m,n belonging to whole numbers}. So m,n=0,1,2,... and I have another set containing 2-points ...
Epsilon's user avatar
  • 1,122
2 votes
0 answers
45 views

NextSetPartition

I'm looking for a function similar to the one in the question below, but for the more general problem of set partitions without restricting the set size. NextKSizePartition, or how to partition a set ...
David's user avatar
  • 159
1 vote
0 answers
37 views

Is there a nice way to deal with sets in an abstract/symbolic way?

For instance, if I wanted to declare $A$ to be the set of all finite subsets of $\mathbb{Z}$, and declare $B$ to be a set comprising all finite subsets of $\mathbb{Z^{-}}$, and then declare $C$ to be ...
Trev's user avatar
  • 763
1 vote
0 answers
52 views

How to preserve braces in result

I have a result from equation, for example p={{0<=x<=1/5||x==9/10},{0<=x<=1/5||x==9/10}} and using Cases[p, z_?NumericQ -> z, Infinity] I get {0,1/5,9/10,0,1/5,9/10} But I ...
Nikol Š's user avatar
1 vote
0 answers
63 views

Defining an abstract multiplication over finite indices

I would like to define a map (a "multiplication" denoted $\otimes$) over the finite set of symbols $G=\{a,b,c,d,e,f,g,h\}$. I would like to define several rules like $$a \otimes b= \{b \} $$ $$a \...
Rajath Radhakrishnan's user avatar
1 vote
0 answers
50 views

Solving systems of logial and set theoretic propositions

I need to allocate a couple of dozen elements into different sets, respecting some boundary conditions, and was hoping Mathematica might somehow help. A simple example: The propositions being a) a ...
Clyde Frog's user avatar
0 votes
0 answers
54 views

Removing a set of original assumptions from the result of Reduce

I am having trouble using set operations when applying them to lists which cme from the Reduce function. As an example, here is a list of assumptions and an expression for which I would like to know ...
sg1234's user avatar
  • 289
0 votes
0 answers
176 views

Global assumption non zero

I would like to define globally an assumption stating that I have a nonzero real vector $v$. For now, I put : $Assumptions = Element[v,Vectors[{100},Reals]] but $v$ ...
Smilia's user avatar
  • 592
0 votes
0 answers
204 views

How to perform delayed evaluation containing function with Mathematica

I was wondering whether there is a way in Mathematica to evaluate an expression in the most simple form, without any simplifying. For example if we define: ...
SGHh SGHh's user avatar
0 votes
0 answers
226 views

Mathematica complement of a region

I want to use Reduce Function to give me intersection of a region and complement of another region The first region is: ...
user3425989's user avatar
0 votes
0 answers
110 views

Iterating over pairs in a list

Take a look at this code: ...
saga's user avatar
  • 101
0 votes
0 answers
210 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 ...
tiankonghewo's user avatar