Ask Your Question

rburing's profile - activity

2024-04-06 10:01:47 +0200 commented question Substitution using function-call syntax and unnamed arguments has been removed. You can use named arguments instead

This looks like a very strange bug. The workaround plot(lambda x0: f(x0), (x,0.1,10)) works in the meantime.

2024-04-06 09:49:50 +0200 commented answer How do I use CurveArrow?

I added an example. I'm not sure how to make p.add_primitive(a) work, there may be a bug there.

2024-04-06 09:48:08 +0200 edited answer How do I use CurveArrow?

This primitive class gets used when the arrow2d function is called with a path keyword argument, so you should call that

2024-04-04 10:05:40 +0200 commented question Modular form computation Error messages

Relevant quote: PariError: the PARI stack overflows (current size: 1073741824; maximum size: 1073741824) You can use par

2024-04-04 09:42:40 +0200 answered a question How do I use CurveArrow?

This primitive class gets used when the arrow2d function is called with a path keyword argument, so you should call that

2024-04-04 09:19:04 +0200 commented answer Solutions to Matrix Equation which are elements of a polynomial ring.

@gian98863 You're welcome. Please submit your revised question as a new self-contained post, ideally also adding a link

2024-04-03 13:49:25 +0200 commented question Listing subgroups of given index

To obtain (representatives of conjugacy classes of) subgroups of low index $\leqslant k$ you can do [G.subgroup(gap_grou

2024-04-01 16:32:07 +0200 answered a question Solutions to Matrix Equation which are elements of a polynomial ring.

Firstly, F = PolynomialRing(GF(3),'x') defines a polynomial ring F in one variable, where the variable is internally nam

2024-04-01 12:57:56 +0200 edited answer Reference for cospectral_graphs function?

The cospectral_graphs function was added in #9141. Credits: Jason Grout (2010-06-04): cospectral_graphs The

2024-04-01 12:55:33 +0200 edited answer Reference for cospectral_graphs function?

The cospectral_graphs function was added in #9141. Credits: Jason Grout (2010-06-04): cospectral_graphs The

2024-04-01 12:50:30 +0200 edited answer Reference for cospectral_graphs function?

The cospectral_graphs function was added in #9141. Credits: Jason Grout (2010-06-04): cospectral_graphs The

2024-04-01 12:49:36 +0200 answered a question Reference for cospectral_graphs function?

The cospectral_graphs function was added in #9141. Credits: Jason Grout (2010-06-04): cospectral_graphs The

2024-04-01 12:41:54 +0200 commented question Modular Forms

@grhkm Please re-post your answer in text form, as the external image link will perish eventually.

2024-03-24 11:41:46 +0200 answered a question How to read a file which has rational functions?

Here is how to read them line-by-line from a string: funs = """[[[4, -1]], (x7 + x20)/x19] [[[4, -3], [4, -1]], (x8*x19

2024-03-20 17:45:47 +0200 answered a question How to simplify non-commutative expressions

Here is one tedious way, where we have to homogenize to use the letterplace implementation: sage: F.<Y,YINV,ONE1,ONE

2024-03-17 10:22:32 +0200 answered a question How to see the source code of the function distance_graph

That hardcoded reference in the documentation seems to be outdated. The following work: sage: sage.graphs.graph.Graph.d

2024-03-17 10:10:16 +0200 edited answer running code twice generate error

The first time you do angleRot=pi/2 and you use that value, and at the end you do pi=Polyhedron(list(tetraHedronDic.

2024-03-17 10:06:19 +0200 answered a question running code twice generate error

The first time you do angleRot=pi/2 and you use that value, and at the end you do pi=Polyhedron(list(tetraHedronDic.

2024-03-15 18:34:39 +0200 commented answer Is it possible to color a string in a list ?

I've updated the answer: use latex(x) in the string concatenation.

2024-03-15 18:32:37 +0200 edited answer Is it possible to color a string in a list ?

If you're using an interface that supports LaTeX output, such as a Jupyter notebook: sage: show(["1", LatexExpr(r"{\col

2024-03-15 14:50:48 +0200 answered a question Is it possible to color a string in a list ?

If you're using an interface that supports LaTeX output, such as a Jupyter notebook: sage: show(["1", LatexExpr(r"{\col

2024-03-11 11:51:25 +0200 answered a question Creating a polynomial with coefficients in a cyclotomic fields

In your test_2 the object K1 is the cyclotomic field, not the polynomial ring over it, hence the error. Probably you me

2024-03-11 11:33:22 +0200 edited answer How to add edges while keeping the original graph unchanged

You could make one mutable copy and modify it in place: def edges_to_add_to_attain_property(graph, prop): G = graph

2024-03-11 11:32:42 +0200 edited answer How to add edges while keeping the original graph unchanged

You could make one mutable copy and modify it in place: def edges_to_add_to_attain_property(graph, prop): G = graph

2024-03-11 11:30:46 +0200 answered a question How to add edges while keeping the original graph unchanged

You could make one mutable copy and modify it in place: def edges_to_add_to_attain_property(graph, prop): G = graph

2024-02-29 14:53:53 +0200 commented question How define a graph where edges are defined using a condition?

What is $F_{B-B_0}(A,B)$? Do you mean $F_{A,B}(B-B_0)$?

2024-02-29 14:53:49 +0200 commented question How define a graph where edges are defined using a condition?

What is $F_{B-B_0}(A,B))$? Do you mean $F_{A,B}(B-B_0)$?

2024-02-29 14:53:41 +0200 commented question How define a graph where edges are defined using a condition?

What is $F_{B-B_0}(A,B))$? Do you mean $F_{A,B}(B-B_0))$?

2024-02-29 14:53:34 +0200 commented question How define a graph where edges are defined using a condition?

What is $F_{B-B_0}(A,B))$? Do you mean $F_{A,B}}(B-B_0))$?

2024-02-27 18:55:25 +0200 commented question Polynomial factorization

In your story it's not clear to me which polynomial should have a nonzero constant term. Please give an example of the i

2024-02-27 18:50:27 +0200 answered a question Polynomial factorization

If I understood you correctly: sage: R.<x,y,z> = PolynomialRing(QQ) sage: f = x^2*(x + y + z + 1) + x^3*(y^2 + z^

2024-02-24 00:21:33 +0200 answered a question Automate launching Sage notebook with mamba in WSL

Try using a login shell, i.e. adding #!/bin/bash --login at the top of your shell script.

2024-02-23 15:48:33 +0200 edited answer How to substitute the product of two variables in polynom?

If the monomial ordering is suitable (see the documentation of PolynomialRing for the options), then you can use: sage:

2024-02-23 15:47:30 +0200 answered a question How to substitute the product of two variables in polynom?

If the monomial ordering is suitable (see the documentation of PolynomialRing for the options), then you can use: sage:

2024-02-23 11:12:01 +0200 edited answer Possible bug with product of matrices over GF with modulus

This is fixed in SageMath 10.2; run in SageMathCell. It would be nice to find the corresponding issue and the pull requ

2024-02-23 11:11:52 +0200 edited answer Possible bug with product of matrices over GF with modulus

This is fixed in SageMath 10.2; run in SageMathCell. It would be nice to find the corresponding issue and the pull requ

2024-02-23 11:11:31 +0200 answered a question Possible bug with product of matrices over GF with modulus

This is fixed in SageMath 10.2; run in SageMathCell. It would be nice to find the corresponding issue and pull request

2024-02-15 11:20:58 +0200 edited answer round function for matrices ?

Setup: sage: A = MatrixSpace(RR, 4, 4).random_element(); A [ 0.920573676643417 -0.560186873335771 -0.402412102767735 0

2024-02-15 07:43:19 +0200 received badge  Good Answer (source)
2024-02-14 20:49:27 +0200 received badge  Nice Answer (source)
2024-02-14 13:10:13 +0200 commented question I need help in improper handling of zero matrices.

Which matrices A and B do you enter exactly, and what error do you get exactly? Please provide sufficient information to

2024-02-14 11:44:16 +0200 answered a question "The kernel appears to have died.It will restart automatically." No graphs plotting

Try installing the latest version of SageMath (in WSL2): Sage Installation Guide - Windows SageMath 9.3 is almost 3

2024-02-14 11:25:12 +0200 answered a question round function for matrices ?

Setup: sage: A = MatrixSpace(RR, 4, 4).random_element(); A [ 0.920573676643417 -0.560186873335771 -0.402412102767735 0

2024-02-12 18:15:40 +0200 received badge  Nice Answer (source)
2024-02-12 11:47:27 +0200 commented question Finding a certain ideal

Is this an example of what you want? K.<a> = NumberField(x^2 - 5); OK = K.ring_of_integers(); d = -4; f = OK.fract

2024-02-11 13:05:38 +0200 commented question Converting between sized and unsized Permutations

There is Permutations()(p). I don't know how to get more natural than this without adding new methods.

2024-02-09 14:04:31 +0200 commented answer Obtaining mutation class of a quiver in Sage with Sage

You can add conditions to a list comprehension, e.g. [plot(T) for T in Ts if T.is_acyclic()] or [plot(T) for T in Ts if

2024-02-09 14:02:49 +0200 edited answer Obtaining mutation class of a quiver in Sage with Sage

Try graphics_array([plot(T) for T in Ts]).show(figsize=[3*len(Ts), 3], aspect_ratio=1) or cols = 10 rows = Integer(l

2024-02-09 13:18:25 +0200 commented answer Obtaining mutation class of a quiver in Sage with Sage

@klaaa Sorry about that, I've updated the answer.

2024-02-09 13:17:32 +0200 edited answer Obtaining mutation class of a quiver in Sage with Sage

Try graphics_array([plot(T) for T in Ts]).show(figsize=[3*len(Ts), 3], aspect_ratio=1) or for T in Ts: T.plot().