20210611 09:52:16 +0100  received badge  ● Famous Question (source) 
20210121 15:32:53 +0100  received badge  ● Popular Question (source) 
20200620 15:50:06 +0100  received badge  ● Notable Question (source) 
20200620 15:50:06 +0100  received badge  ● Popular Question (source) 
20200421 16:17:10 +0100  received badge  ● Popular Question (source) 
20170707 22:18:23 +0100  received badge  ● Popular Question (source) 
20140629 18:55:40 +0100  received badge  ● Popular Question (source) 
20140629 18:55:40 +0100  received badge  ● Notable Question (source) 
20140629 18:55:40 +0100  received badge  ● Famous Question (source) 
20140629 03:15:40 +0100  marked best answer  Pulling the index of an entry of a matrix Let $M$ be some matrix, then I am looking for how to find out which entries of $M$ make the statement It works great, but now instead of printing deg and finding the entries manually, I would like to be able to store which entries etc. Any tips on where to look or help files to examine? Thanks very much. 
20140629 03:15:40 +0100  marked best answer  Assigning individual entries of a matrix I have been using code as follows to compute fundamental weight representations of Lie groups inside $GL(25)$: But now I am interested in going through and looking at all Now this will be quite a set of numbers, so I am wondering how I can pick out the ones that give me But this doesn't work. Is my syntax off? 
20140629 03:15:40 +0100  marked best answer  How to define multiple WeylCharacterRings at one time I am trying to use a script like the one below (to use a simplistic version) to define multiple Weyl character rings at one time. I then am hoping to go through, and compute the degrees of the representation corresponding to the weight (1,1,1,...,1) depending on which B$i$ I am considering i.e., for $B4$ I would want to calculate (its $126$). How can I go about automating this in some way? Any tips or reference materials? Thanks for your time. 
20140629 03:15:40 +0100  marked best answer  How to find instances where $d(a,b) = p^2$ for $p$ a prime Suppose I have a dimension formula (for a Lie algebra representation) given by
$\mathrm{dim}_{a,b} = {(a+1)(b+1)(a+b+2) \over 2}$. I now would like to find pairs $(a,b)$ where $\dim_{a,b} = p^2$ for $p$ a prime? What are some techniques for accomplishing this? Should I first filter out a list of primes using 
20130617 16:02:36 +0100  asked a question  How to see the documentation for a Sage function I am looking for the documentation (i.e., the source code) of 
20130613 11:57:57 +0100  asked a question  Generating permutations of coefficients I have created the following function to return all pairs This prints out the following: I now would like to take this However I am not sure which data types to use, and how to generate these 
20130611 12:17:39 +0100  marked best answer  How to compute an iterated product in Sage You can use the This also works symbolically: 
20130610 17:58:24 +0100  asked a question  How to compute an iterated product in Sage I am wondering about how to define a function 
20130603 16:26:23 +0100  commented answer  Unsure why the 0 values error keeps coming up I see, I just corrected the range that the function needs to access and it worked perfectly. Thanks! 
20130603 16:25:55 +0100  marked best answer  Unsure why the 0 values error keeps coming up The problem comes from how you called your function. The function returns an empty list, but you try to assign two variables ( A simpler example: Here, the error means that you need the function 
20130603 16:18:10 +0100  commented question  Unsure why the 0 values error keeps coming up @vdelecroix I'm sorry, I was missing a `+` and I put the `return` statement that appears halfway down in order to see if the first output of my function was valid but I suppose this is not a correct debugging technique. I have edited the code to fix those two mistakes 
20130603 16:15:20 +0100  received badge  ● Editor (source) 
20130603 14:06:38 +0100  asked a question  Unsure why the 0 values error keeps coming up I am trying to code an algorithm to find the degrees of all small rank representations of $A_n$ that are equal to $p^2$ for some prime $p$. However, I think that my code should be correct, but it keeps giving me the following error: The code for which it gives me this error is the following: A helpful answer would be one that answers: What does Many thanks for your time. 
20130603 14:00:42 +0100  commented answer  How to store outputs from a function for later use Many thanks @tmontneil, I now understand. Partition is indeed useful to keep in mind 
20130531 11:51:47 +0100  commented answer  How to store outputs from a function for later use @tmontneil but will the `w[i]` values now feed into a Schur function? I thought they had to be lists i.e., I think I need `w[0] = [1,0,...,0]` right? 
20130531 11:19:15 +0100  commented question  How to store outputs from a function for later use Just figured out part of it: `[index, deg, L] = rankrep(3)` 
20130531 11:19:15 +0100  received badge  ● Commentator 
20130531 11:15:08 +0100  asked a question  How to store outputs from a function for later use My function that I have written to compute the rank of fundamental representations is as follows: But now if I call

20130531 06:49:19 +0100  marked best answer  Pulling the index of an entry of a matrix One way you could do this is to use a conditional list comprehension; these take the form And since you will be iterating over a matrix, a double list comprehension is in order; these take the form where Another Sagespecific data type that might interest you is sets  these are like lists, but automatically condense duplicate entries. For example, the set of values in the matrix 
20130530 17:18:01 +0100  commented answer  Problem getting indices to sync up Thanks very much @John for your help 
20130530 17:17:50 +0100  marked best answer  Problem getting indices to sync up Try replacing with (In your code, 
20130530 14:46:19 +0100  commented question  Problem getting indices to sync up I've added this line of code ` [(i,j) for (i,deg_i) in enumerate(deg) for (j,deg_ij) in enumerate(deg_i) if deg_ij == p**2]` to pull the indices 
20130530 14:37:25 +0100  asked a question  Problem getting indices to sync up I'm not sure what is wrong with the following code: But when I run it, it is unable to return anything, and tells me I eventually hope to insert some 
20130530 13:50:46 +0100  marked best answer  Plethysym as composition of functions I don't know the answer to this question, but you may be able to determine it yourself by looking at the source code for Also (I apologize if you've already checked this) the Wikipedia page on plethysm is very short, but includes a cryptic comment which may help you decide if your guess is correct or not. Good luck! 
20130529 18:03:57 +0100  asked a question  Plethysym as composition of functions On this page the 