Questions tagged [tuples]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
41 views

some questions about tuple

I noticed that Tuples[{0, 1}, 3] gives the eight vertices of a cubic. Tuples[{0, 1}, 2] gives the four vertices of a square. <...
3
votes
2answers
77 views

Making figure from list of tuples

I am generating all possible configurations of NN elements comprising only 0 or 1 as sB[NN_] := Tuples[{0, 1}, NN] Using this, for fixed NN I would like to ...
2
votes
1answer
63 views

Tuples with more criteria

I have seen that there is question here which does almost what I wanted to ask but it's not quite what I wanted. Efficiently generating tuples with Outer What I would like to have is a Tuples of a ...
3
votes
2answers
55 views

Duplicate Tuples in two different ways

Writing: n = 3; Tuples[{"min", "MAX"}, n] I get: {{"min", "min", "min"}, {"min", "min", "MAX"}, {"min", "MAX", "min"}, {"min", "MAX", "MAX"}, {"MAX", "min", "...
5
votes
4answers
731 views

What is the identity for Tuples?

My question is, what list p in the following statement returns the list q? Tuples[{{p},{q}}] If we think of Tuples as a binary operator then p would be the ...
0
votes
0answers
65 views

How to list all the possible functions of given structure?

I can run this command : Tuples[{ Tuples[{x, y, z}, 2], {a, b, c}}] to list all combinations that looks like: ...
3
votes
2answers
121 views

Delete duplicates in tuples

I use the following code to create a list of input parameters: ...
0
votes
2answers
91 views

Tuples of elements from list excluding anything with repeated values

What I would like to do is the following. For a given list of elements; say (0,1,2,3,4) I would like to obtain all possible combinations of five, but not the ones with ANY repeated values. That is I ...
2
votes
1answer
64 views

Select elements in a list of tuples of quaternions that satisfy a condition

I defined 24 quaternions using the Quaternions package and i create the list of all possible 4-tuples using ListQuad = Tuples[ListQuaternions, 4] where ...
0
votes
1answer
47 views

how to replace part of tuple

I would like to replace all elements $1/2$ in tuples with $0$, How should i do that I tried already this one : sel1 = ReplacePart[sel[[#]], 1/2 -> 0] The ...
5
votes
1answer
247 views

Selecting from a list returned by Tuples

Select[Tuples[{1, 1/2}, {4, 4}], Total [#] == 15] I want to select all tuples in the result returned by Tuples that have total ...
2
votes
1answer
69 views

Duplicate Tuples

Writing: Tuples[{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}] I get: ...