I repost with a simplified question (my previous post was closed).  I need to output all combination of a list of length N.  I already know that combinations will do this with, as example, the actual input list: ['A, 'B'] ==> output: ['A', 'A'], ['A', 'B'], ['B', 'B']  But I need this: ['A', 'A'], ['A', 'B'], ['B', 'A'], ['B', 'B'].  Is there a way to do it with combinations()?
How do you generate all the permutations of a list in Python, independently of the type of elements in that list?  For example:  permutations([]) []  permutations([1]) [1]  permutations([1, 2]) [1, 2] [2, 1]  permutations([1, 2, 3]) [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] [3, 2, 1]
About multi-root search in Mathematica for transcendental equations laptop fails to suspend or hibernate (wakes up after 2-5 seconds without user interaction) Is there any matrix $2\times 2$ such that $A\neq I$ but $ A^3=I$? Is there any $2 \times 2$ matrix $A \neq I$ such that $A^3=I$?  In my opinion: no. Thank you very much. First, when I never had installed sl:  diogosaraiva@Ubuntu:~$ sl O programa 'sl' não está instalado actualmente. Pode instalá-lo escrevendo: sudo apt-get install sl   traslaction: "The program 'sl' is not currently installed. You can install it by typing:"  But when I'm tired of it and I remove it by typing sudo apt-get remove sl per example...  I get this when I type sl:  -bash: /usr/games/sl: Ficheiro ou directoria inexistente   translate: "-bash: /usr/games/sl: No such file or directory" instead of:    diogosaraiva@Ubuntu:~$ sl O programa 'sl' não está instalado actualmente. Pode instalá-lo escrevendo: sudo apt-get install sl   This appears with others packages too...  How I get rid of this: -bash: /usr/games/sl: Ficheiro ou directoria inexistente ?  I want see the original:  diogosaraiva@Ubuntu:~$ sl O programa 'sl' não está instalado actualmente. Pode instalá-lo escrevendo: sudo apt-get install sl   Output of type sl  sl está hasheado (/usr/games/sl) Often floats may land quite a bit later in the document than the point they are created, sometimes after a section break.  Is there a way to force a new section to start on a new page, after any unplaced floats? Add Item to Finder Sidebar How to prevent the screen lock while watching video (Netflix, Youtube, Amazon Prime) in Ubuntu 17.10 In earlier Ubuntu versions like 16.04 and 17.04 while watching YouTube videos in full-screen mode, the screen would not get locked automatically.  In Ubuntu 17.10 while watching videos in browser, system is getting locked. So Ubuntu 17.10 is considering this scenario as user is not doing anything.  Kindly suggest a solution for that. How do you uninstall wine 1.5? How can I recover my account? I tried to log into Minecraft today to find that my password isn't working. I tried to change it, but I can't login to my email because I forgot the answer to my security question. I tried changing the email to a different one, but that didn't work for some reason (it kept saying "invalid email"). I don't have my transation ID because I forgot which credit card I used.  Does this mean that I have to buy a new Minecraft account? Correct the "about" page to reference the new "on hold" policy is there a way to get the option "Organize Desktop by Name" in Ubuntu 19.10 same as in 18.04? Obtaining zero-length string from strtok() How can I delete my Stack Exchange account(s)? Also,  What happens to my content? Can I request it be deleted as well? What if I'm suspended, rate-limited, or banned from posting questions or answers? What will happen to my votes? Will other users be impacted? Why wasn't my account deleted immediately after the timer expiring? What will happen to my pending bounties and close, reopen, delete, or undelete votes? I want my account deleted on all Stack Exchange sites. How do I do this? Will my profile on chat be removed once I delete my site account?   For more information, see &quot;&quot; in the . Solving a cubic polynomial equation. Overview I have tried finding a solution to this problem myself and I have flailed. Its just a challenge for me. could you please tell me how far am I in solving this question? My approach for quadratic equation : I am still a student, and when I first saw the quadratic formula I wanted to derive it myself and I did it. This was my logic: the equation $x^2 + bx + c=0$ is obviously supposed to contain 2 roots (real or imaginary). So any 2 points in an axes can be represented as: $n+k$ or $n-k$. so (1) : putting $x = n+k$, (2): putting $x=n-k$ we get two equations; on subtracting $(1) - (2)$ we get an equation in $n$ and $k$ as, $4nk+2kb=0$ which gives $n=-b/2$.  Now substituting this value of $n$ in $(1)$ and $(2)$ and adding them we get $k= (+or-) \sqrt{b^2 -4c}/2 $. My approaches for trying to solve cubic equations: Let $x^3+bx^2+cx+d = 0$ be the equation. My first trials were focused on extracting the roots by various substations. Let me explain some of them. Originally, when I derived the quadratic equation, I wanted to literary &quot;represent the solution&quot; by $n+k$ and $n-k$. most methods that I have thought of for cubic equation similar to that of the quadratic (like assigning 3 unambiguous  variables to uniquely represent 3 roots- $n$ and $k$ represents unique values), by considering 3 unique values, but they end up being ambiguous. Then I was suddenly struck with the idea that I could define certain random operators to &quot;transform&quot; the equation in some way changing the co-coefficients of $x^2, x, x^0$. I have defined the first transformation as: $x^3+bx^2+cx+d=0 \to x^3+ b'x^2 + c'x+d' =0   $ then $b' = b$, $c' =b^2+c$, $d' = bc-d$. Applying this operation changes the modified equation's zeros as follows: $\alpha'=(\alpha+\beta)/2, \beta' = (\beta+\gamma)/2, \gamma' = (\alpha+\gamma)/2 $ if the initial zeros are $\alpha, \beta, \gamma$. My latest assumption is that creating $n$ number of transformations and applying them can help us obtain the roots in some combination. The other operation I have defined is &quot;increment roots by by $\theta$ operation&quot;. in this case, $x^3+ bx^2+ cx+ d \to x^3+b'x^2+ c'x+d=0$. here, $b' = b + 3\theta, c' = 3\theta^2+ 2\theta b+ c, d' = \theta^3 +b\theta^2 + c\theta + d$. This modification transforms the original roots $\alpha, \beta, \gamma$ to $\alpha' = \alpha + \theta, \beta' = \beta + \theta, \gamma' = \gamma + \theta$ Now for my questions: How far am I from solving the cubic polynomial problem myself without any external help? More over, I give up. How to find the roots of a cubic equation? Could my latest idea for solving cubic equations actually be applied (the transformation method)? Is it possible to find the roots with my transformation method? (my second transformation definition was successful in converting the coefficient b or c to zero by transforming the roots linearly) Why hash the message before signing it with RSA? Cleaning unwanted overlapping duplicate meshes I have a model with hundreds of mesh objects. Unfortunately I clicked shift+D to duplicate many and did not notice. Later after working a while, I was rendering, and noticed there are double meshes overlapping each other.   How can I find all duplicate meshes and delete them. I could do it manually,  just clicking,  but it would take a long time and if I miss something i will not notice.   Is there any option,  or can anybody suggest to me,  how can I find all duplicate mesh and delete them.  Model with all double (duplicate) mesh  Final Result Is there a way to crack the password on an Excel VBA Project? How do I create a PDO parameterized query with a LIKE statement? What was missing in Dirac's argument to come up with the modern interpretation of the positron? What is inertia of a body?