2024-03-27 07:34:22 +0100 | asked a question | Type of variable is changed after using factor() function Type of variable is changed after using factor() function I defined a polynomial using polynomial ring. In my program, I |
2024-03-27 07:30:48 +0100 | marked best answer | How to substitute variables in a rational function by numbers? I have a program in which the first part needs to use a polynomial ring in a[1], ..., a[n]. In the last part of the program, I need to substitute a[i] in a rational function by some numbers. I define For example, I have a rational function I tried the following: But it has an error: How to solve this problem? Thank you very much. |
2024-03-26 03:03:10 +0100 | asked a question | How to substitute variables in a rational function by numbers? How to substitute variables in a rational function by numbers? I have a program in which the first part needs to use a p |
2024-03-24 12:26:17 +0100 | marked best answer | How to read a file which has rational functions? I have a large file which has rational functions and I would like to read it to Sagemath. The first two lines are When I tried to read it, sagemath said that x_i's are not defined. Thank you very much! |
2024-03-24 11:19:42 +0100 | asked a question | How to read a file which has rational functions? How to read a file which has rational functions? I have a large file which has rational functions and I would like to re |
2024-02-02 13:45:23 +0100 | received badge | ● Famous Question (source) |
2023-11-10 20:57:12 +0100 | received badge | ● Notable Question (source) |
2023-10-30 19:50:09 +0100 | received badge | ● Popular Question (source) |
2023-10-27 22:10:25 +0100 | marked best answer | find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a list (the list can have numbers appearing many times). For example, The length of the list is $mk$ for some $m,k$ (k is fixed in the beginning). I would like to find all m-tuples of lists such that all the numbers in each list are different and each list is ordered from small to large, and there is 0 or 1 gap in each list, and the union of the m-tuple of lists is the given list, and all the lists in one m-tuple has length k. For example, [1,2,3,4] does not have gap, and [1,2,5,6] has one gap, and [1,3,6,7] has two gaps. For example, is a 3-tuple which satisfies all the conditions and whose union is L. Here k=6, m=3. In the case of L=[1,2,3,4,5,6] and k=3. The result should be (each line is a 2-tuple): I wrote the following to try to find all m-tuples which satisfies the condition of all numbers in each list are different. But it is not very fast. Is there some fast way to solve the problem? Thank you very much. |
2023-09-27 11:56:30 +0100 | received badge | ● Notable Question (source) |
2023-09-13 07:10:59 +0100 | received badge | ● Popular Question (source) |
2023-08-28 21:57:07 +0100 | commented answer | find all m-tuples of lists whose union is a given list @Max, thank you very much! |
2023-08-28 09:54:03 +0100 | edited question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-28 09:46:57 +0100 | edited question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-28 09:29:48 +0100 | edited question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-28 09:28:59 +0100 | edited question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-28 09:27:21 +0100 | edited question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-28 09:21:41 +0100 | commented answer | find all m-tuples of lists whose union is a given list @Max, there many ways to cut a given list of length $mk$ into $m$ pieces. I would like to find a fast way to find all po |
2023-08-27 21:28:57 +0100 | commented answer | find all m-tuples of lists whose union is a given list @Max, thank you very much for your answer! I am sorry I forgot to say that the lists in each m-tuple has the same length |
2023-08-27 19:12:51 +0100 | edited question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-27 19:11:37 +0100 | edited question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-27 18:36:11 +0100 | asked a question | find all m-tuples of lists whose union is a given list find all m-tuples of lists whose union is a given list I would like a fast way to solve the following problem: given a l |
2023-08-16 16:01:53 +0100 | received badge | ● Popular Question (source) |
2023-08-16 16:01:53 +0100 | received badge | ● Notable Question (source) |
2023-08-10 14:36:47 +0100 | received badge | ● Notable Question (source) |
2023-08-10 14:36:47 +0100 | received badge | ● Popular Question (source) |
2023-07-29 23:47:40 +0100 | received badge | ● Nice Question (source) |
2023-07-28 11:27:46 +0100 | asked a question | How to find the number of parameters in the result of solve function? How to find the number of parameters in the result of solve function? I would like to find a way to obtain the number of |
2023-07-15 14:15:32 +0100 | received badge | ● Famous Question (source) |
2023-06-06 14:53:21 +0100 | marked best answer | errors when read a file with symbols I am trying to read a file with contents like: I use the following codes: But it has errors: Is there some way to fix this? Thank you very much. |
2023-06-02 11:11:00 +0100 | asked a question | errors when read a file with symbols errors when read a file with symbols I am trying to read a file with contents like: [4/t^4, [[-3, 3, -3], [-1, 1, -3], |
2023-05-27 19:45:23 +0100 | received badge | ● Notable Question (source) |
2023-05-24 06:48:14 +0100 | received badge | ● Popular Question (source) |
2023-05-19 21:56:00 +0100 | received badge | ● Popular Question (source) |
2023-05-11 14:08:40 +0100 | received badge | ● Notable Question (source) |
2023-05-05 11:17:29 +0100 | marked best answer | complex number in Sagemath I wrote some codes for a computation which involves complex numbers. There is an error when I run The error is: 'numpy.float64' object is not callable Do you know how to fix it? Thank you very much. The codes are |
2023-05-04 11:10:20 +0100 | edited question | complex number in Sagemath complex number in Sagemath I wrote some codes for a computation which involves complex numbers. There is an error when I |
2023-05-03 21:53:15 +0100 | asked a question | complex number in Sagemath complex number in Sagemath I wrote some codes for a computation which involves complex numbers. There is an error when I |
2023-05-03 20:38:33 +0100 | marked best answer | How to write an involution in Weyl group as a product of $2$-cycles? Is there some method in Sage to decompose an involution in Weyl group as a product of $2$-cycles (transpositions)? For example, I define How to write t2 as a product of $2$-cycles? The result should be $(1,4)(2,3)$. Thank you very much. |
2023-04-30 16:43:28 +0100 | commented question | How to write an involution in Weyl group as a product of $2$-cycles? @Max, thank you very much. It is a permutation on the set ${1,2,3,4}$. $s_i$ interchange $i,i+1$. So under t2, 1,2,3,4 i |
2023-04-30 16:42:53 +0100 | commented question | How to write an involution in Weyl group as a product of $2$-cycles? @Max, thank you very much. It is a permutation on the set ${1,2,3,4}$. $s_i$ interchange $i,i+1$. So under t2, 1,2,3,4 i |
2023-04-30 16:42:31 +0100 | commented question | How to write an involution in Weyl group as a product of $2$-cycles? @Max, thank you very much. It is a permutation on the set ${1,2,3,4}$. $s_i$ interchange $i,i+1$. So under t2, 1,2,3,4 i |
2023-04-29 12:09:19 +0100 | received badge | ● Popular Question (source) |
2023-04-29 12:09:19 +0100 | received badge | ● Notable Question (source) |
2023-04-28 15:55:22 +0100 | commented question | How to write an involution in Weyl group as a product of $2$-cycles? @Max, thank you very much. I tried simple_roots() but it has errors. The t2 is the product of simple reflections $s_1s_2 |
2023-04-27 22:24:38 +0100 | commented question | How to write an involution in Weyl group as a product of $2$-cycles? @Max, thank you very much! But the result I got is [(1, 12), (2, 11), (3, 10), (4, 9), (5, 8), (6, 7)] not (1,4)(2,3). |
2023-04-27 22:24:26 +0100 | commented question | How to write an involution in Weyl group as a product of $2$-cycles? @Max, thank you very much! But the result I got is [(1, 12), (2, 11), (3, 10), (4, 9), (5, 8), (6, 7)] not (1,4)(2,3). |
2023-04-27 22:22:45 +0100 | edited question | How to write an involution in Weyl group as a product of $2$-cycles? How to write an involution in Weyl group as a product of $2$-cycles? Is there some method in Sage to decompose an involu |
2023-04-24 22:18:18 +0100 | received badge | ● Popular Question (source) |
2023-04-22 19:16:11 +0100 | edited question | How to write an involution in Weyl group as a product of $2$-cycles? How to write an involution in Weyl group as a product of $2$-cycles? Is there some method in Sage to decompose an involu |