Basic operations on sequences (conventional notation)

AI Thread Summary
The discussion centers on finding equivalent operations for sequences similar to set operations like set-difference and union. It explores whether there is a defined operator for subtracting one sequence from another and converting sequences into sets to facilitate this operation. The conversation suggests using a function that removes duplicates from a sequence to create a set, allowing for operations like A \setminus B to be applied. Additionally, it questions the notation for adding an element to a sequence, proposing A \oplus b as a potential representation. The thread concludes that there is no standard notation for these operations in the literature, encouraging exploration of existing methods.
azal
Messages
8
Reaction score
0
Hi All,

So here's my question:

Suppose we have two sets A and B, then A \setminus B denotes their set-difference.
Does there exist an equivalent operator for the case where A and B are not sets, but sequences?

Otherwise, is there an operator to convert a sequence into a set, removing the index, and all repetitions? In that case, I can take my sequences, convert them to their corresponding sets, and use \setminus to get the result I'm looking for.

Also, what is the counterpart of A \cup \{b\} for the case where A is a sequence? is it A \oplus b?

I can't seem to find such conventions regarding sequences anywhere on the web ...

Thanks so much for your help,

-A.
 
Mathematics news on Phys.org
azal said:
Does there exist an equivalent operator for the case where A and B are not sets, but sequences?

You aren't being specific enough abou what operation you want. For example,
if A = 1,2,3,4,5 and B = 1,3,3,4,6 what do you want "the equivalent operator" to do? Produce the sequence 1-1,2-3,3-3,4-4,5-6 = 0,-1,0,0,-1 ? Or produce the sequence 2,3,5,6 ? Or produce the sequence 2,6 ?

Some authors use the notation A - B to mean term-by-term subtraction. For more elaborate operations, I don't think there is any standard notation. If you are writing a paper on this specialized subject, look in the related literature and see what people have invented. (And don't feel obligated to use it!)
 
So, assume the operator f takes a sequence, and returns its elements as a set (without repetitions). For example if \mathbf{a} = (1,1,2,1,3,2) then f(\mathbf{a}) = \{1,2,3\}.

Now suppose we have a pair of sequences \mathbf {a} = (a_1,a_2,\cdots,a_n) and \mathbf {b} = (b_1,b_2,\cdots,b_m). I want \mathbf {a}-\mathbf {b}:= f(\mathbf {a})\setminus f(\mathbf{b}).
 
So in your example I want the operator to produce: \{1,2,3,4,5\} \setminus \{1,3,4,6\} = \{2,5\}.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top