Ask Your Question

vidyarthi's profile - activity

2026-01-13 16:56:53 +0100 received badge  Notable Question (source)
2025-11-30 12:38:30 +0100 received badge  Famous Question (source)
2025-11-30 12:38:30 +0100 received badge  Notable Question (source)
2025-05-28 20:35:35 +0100 received badge  Notable Question (source)
2025-05-28 20:35:35 +0100 received badge  Popular Question (source)
2025-05-11 18:36:56 +0100 received badge  Popular Question (source)
2025-05-11 18:36:56 +0100 received badge  Notable Question (source)
2025-04-27 17:34:26 +0100 received badge  Notable Question (source)
2025-04-01 17:06:56 +0100 received badge  Famous Question (source)
2025-02-28 00:20:20 +0100 received badge  Notable Question (source)
2025-02-28 00:20:20 +0100 received badge  Popular Question (source)
2024-11-18 17:10:08 +0100 received badge  Notable Question (source)
2024-11-15 08:02:59 +0100 received badge  Famous Question (source)
2024-10-26 12:30:42 +0100 marked best answer Group element multiplication in symmetric group

I think this is elementary, but how do we just multiply two elements in the symmetric group. For example, I have a list of elements as

G=SymmetricGroup(5)
A=[(1,2), (1,3,2), (1,4), (1,4)(2,3),(2,4),(2,4,3),(3,4),(2,3,4)]
b=[G(1,5)*G(a) for a in A]
b

When I implement in the above code on the compiler, I get the error 'tuple' object is not callable. Anyway to overcome this error and multiply two elements in the group, or, in any other group? Thanks beforehand.

2024-10-26 12:30:37 +0100 received badge  Nice Question (source)
2024-10-26 12:29:44 +0100 received badge  Popular Question (source)
2024-08-22 13:45:01 +0100 received badge  Popular Question (source)
2024-08-02 14:17:20 +0100 received badge  Popular Question (source)
2024-07-14 16:17:37 +0100 received badge  Popular Question (source)
2024-07-09 06:34:12 +0100 received badge  Popular Question (source)
2024-07-09 06:34:12 +0100 received badge  Notable Question (source)
2024-06-19 13:33:15 +0100 received badge  Notable Question (source)
2024-06-19 13:33:15 +0100 received badge  Popular Question (source)
2024-04-27 16:17:25 +0100 received badge  Popular Question (source)
2024-02-29 20:31:00 +0100 received badge  Notable Question (source)
2024-02-19 03:47:24 +0100 received badge  Popular Question (source)
2023-11-29 12:50:46 +0100 commented answer How can I count the number of cycles of special length in a graph in sage?

The subgraph_cound should be subgraph_count. Similarly for cycle_subgraph_cound.

2023-08-22 17:46:22 +0100 marked best answer Factorizing matrix entries that are polynomials

Suppose i have a polynomial matrix like:

var('x')
g=graph.CompleteGraph(4)
h=g.am()
t=h-x*identity_matrix(4)
t1=t.adjugate()
t1

Then, how do i get t1 in the factorized/simplified form. Specifically, I see that there are exactly two distinct entries in t1, and each of them can be factorized into two distinct monomial powers. But, how do I get this directly, without having to factorize each element separately. Any hints? Thanks beforehand.

2023-08-22 17:46:03 +0100 answered a question Factorizing matrix entries that are polynomials

Thanks to @MaxAlexseyev, to get what I wanted, which is the adjugate matrix having all its individual entries factored,

2023-08-22 17:44:20 +0100 commented answer Factorizing matrix entries that are polynomials

Got it! I used t1.apply_map(lambda z:factor(z))to get what I wanted.

2023-08-22 17:37:08 +0100 commented answer Factorizing matrix entries that are polynomials

Thanks! I actually wanted to factorize each of the individual matrix entries. On writing factor(t1.list()), I get error

2023-08-22 14:25:39 +0100 asked a question Factorizing matrix entries that are polynomials

Factorizing matrix entries that are polynomials Suppose i have a polynomial matrix like: var('x') g=graph.CompleteGraph

2023-08-19 15:51:35 +0100 marked best answer Extracting specific rows of a matrix

Suppose I have a matrix A which is m x n in order. How do I extract a submatrix of specified rows and colums from A. Like I want a p x q submatrix of A. Will the expanded_submatrix method help in this regard? Thanks beforehand.

2023-08-16 00:59:45 +0100 answered a question Extracting specific rows of a matrix

The syntax was unexpectedly easy. It is similar to the one used in Matlab/Octave. We just use the syntax A[i-1:p,j-1:q],

2023-08-16 00:46:36 +0100 asked a question Extracting specific rows of a matrix

Extracting specific rows of a matrix Suppose I have a matrix A which is m x n in order. How do I extract a submatrix of

2023-08-16 00:41:58 +0100 commented question Representing Code over integer rings

@dan_fulea Modified the question. Added a reference. At least, if there was a workaround when q or n in this question is

2023-08-16 00:40:45 +0100 edited question Representing Code over integer rings

Representing Code over integer rings Is there a method to deal with all codewords over the integer rings Z_n where n=p^

2023-08-10 11:51:25 +0100 received badge  Popular Question (source)
2023-08-05 18:37:55 +0100 received badge  Famous Question (source)
2023-08-01 14:00:22 +0100 commented question Representing Code over integer rings

@dan_fulea By codewords I mean a submodule over the ring [math]\mathbb{Z}_n[/math]. And yes, it is best to get them as a

2023-08-01 14:00:04 +0100 commented question Representing Code over integer rings

@dan_fulea By codewords I mean a submodule over the group [math]\mathbb{Z}_n[/math]. And yes, it is best to get them as

2023-08-01 11:30:30 +0100 marked best answer How to remove radicals from an equation

If an equation has several radicals, is it possible to remove the radicals to get a radical free equation in SageMath? The simplify_radical() method seems not to exist in SageMath. The canonicalize_radical() seems to do nothing. For example,

E=a^2 + b^2 + c^2 + sqrt(a^2 + b^2 + c^2)==0
E.canonicalize_radical()

gives the output same as E

Any alternative? Thanks beforehand.

2023-08-01 11:28:42 +0100 commented question Representing Code over integer rings

@dan_fulea By codewords I mean the module over the group [math]\mathbb{Z}_n[/math]. And yes, it is best to get them as a

2023-07-31 19:42:18 +0100 edited question How to remove radicals from an equation

How to remove radicals from an equation If an equation has several radicals, is it possible to remove the radicals to ge

2023-07-31 19:33:02 +0100 edited question How to remove radicals from an equation

How to remove radicals from an equation If an equation has several radicals, is it possible to remove the radicals to ge

2023-07-31 19:27:41 +0100 commented answer How to remove radicals from an equation

But that dosent seem to work

2023-07-31 18:09:21 +0100 asked a question Representing Code over integer rings

Representing Code over integer rings Is there a method to deal with all codewords over the integr rings Z_n wheren=p^k

2023-07-31 17:51:11 +0100 asked a question How to remove radicals from an equation

How to remove radicals from an equation If an equation has several radicals, is it possible to remove the radicals to ge