Ask Your Question

John Palmieri's profile - activity

2024-03-26 05:44:23 +0100 edited question How to generate this map in sage

How to generate this map in sage Okay this is my code so far. F.<x,y,z> = FreeGroup() A = F.algebra(QQ) Y = A(y)

2024-03-11 19:51:17 +0100 edited question the plot of my function EFF is always zero, but print

the plot of my function EFF is always zero, but print The code: sage: cnodo=[] sage: cnodo.append(0) sage: cnodo.append

2024-03-11 19:51:03 +0100 edited question the plot of my function EFF is always zero, but print

the plot of my function EFF is always zero, but print sage: cnodo=[] sage: cnodo.append(0) sage: cnodo.append(.5

2024-03-07 18:06:22 +0100 received badge  Nice Answer (source)
2024-03-05 20:00:01 +0100 edited answer Functions of the elements of a matrix

Yes, you can certainly create a function in Python that operates on a matrix in the manner you described. You don't need

2024-03-04 23:15:40 +0100 commented answer How to solve system of equations in polynomial ring over GF with a different variables

(I was basing this on the comment "I expected solution x = 3 * y, z = 6 * y".)

2024-03-04 19:17:05 +0100 commented answer How to solve system of equations in polynomial ring over GF with a different variables

Maybe J.gens() is the kind of thing the poster is looking for?

2024-03-04 18:50:14 +0100 answered a question How to solve system of equations in polynomial ring over GF with a different variables

The solve_mod command might be useful: Return all solutions to an equation or list of equations modulo the given int

2024-03-01 19:31:21 +0100 answered a question Implementing a new class on Sage

First, from the point of view of the Sage library: the directories in SAGE_ROOT/src/sage are mostly pretty broad — group

2024-02-29 19:57:04 +0100 commented answer How define a graph where edges are defined using a condition?

Sure, even better!

2024-02-29 17:43:32 +0100 edited answer How define a graph where edges are defined using a condition?

Here is a simple example: the vertices are elements of $\mathbb{F}_5$, and there is an edge from $a$ to $b$ if $a^2 = b^

2024-02-29 17:43:02 +0100 answered a question How define a graph where edges are defined using a condition?

Here is a simple example: the vertices are elements of $\mathbb{F}_5$, and there is an edge from $a$ to $b$ if $a^2 = b^

2024-02-21 23:39:26 +0100 commented question ModuleNotFoundError when importing Sirocco

You may need to rebuild a part of the Sage library. In a regular installation, this would be accomplished by running mak

2024-02-21 23:38:50 +0100 commented question ModuleNotFoundError when importing Sirocco

You may need to rebuild a part of the Sage library. In a regular installation, this would be accomplished by running mak

2024-02-21 19:58:15 +0100 commented question Odd behaviour in computation of intersection in Poincare Disc

Also asked at https://stackoverflow.com/q/78034167/1401572. Do the comments there address the problem sufficiently?

2024-02-21 19:57:34 +0100 commented question Odd behaviour in computation of intersection in Poincare Disc

Also asked at https://stackoverflow.com/questions/78034167/odd-behaviour-in-computation-of-intersection-in-poincare-disc

2024-02-21 18:00:30 +0100 commented question Is there a plot function for ordered trees?

For a binary tree t, use t.show().

2024-02-21 00:42:52 +0100 answered a question Is there a plot function for ordered trees?

If T is an ordered tree, then there is a method T.plot() that plots T.

2024-02-21 00:41:00 +0100 commented question Is there a plot function for ordered trees?

What is dyckpath? There is no such function or method in the Sage library.

2024-02-19 19:06:01 +0100 edited question Generalized quadrangles of order (5,5^2)

Generalized quadrangles of order (5,5^2) Hello, I am trying to contruct strongly regular graphs (SRGs) from generalized

2024-02-11 17:07:03 +0100 edited question How do I insert a list into my python code using Cocalc / Sagemath

How do I insert a list into my python code using Cocalc / Sagemath Unfortunately, Input() doesn't work in a .sagews, bec

2024-02-05 16:40:48 +0100 received badge  Nice Answer (source)
2024-02-03 21:43:28 +0100 commented question Run Sage on Sublime Text

There is an emacs-mode for Sage. Maybe the ideas behind that can be adapted somehow to work with Sublime Text.

2024-02-03 21:42:43 +0100 commented question Variable Matrices on Sage

You say "it complains". What command yields the complaint? The comment from @FrédéricC was intended (I believe) to addre

2024-01-31 01:44:48 +0100 answered a question all_simple_paths generates AttributeError for graphs

all_simple_paths is defined for directed graphs (instances of DiGraph in Sage) but not for general graphs. This should w

2024-01-29 23:28:25 +0100 answered a question Gram_schmidt

Rows. This information is provided in the documentation: sage: A = identity_matrix(QQ, 2) sage: sage: A.gram_schmidt?

2024-01-25 18:35:45 +0100 edited question Draw a list of continuously colored points

Draw a list of continuously colored points I have a list of point and use list_point to draw it. Let’s say L=[[k,sqrt(k

2024-01-25 18:35:22 +0100 answered a question plotting origin location

You can try p1.set_axes_range(-10, 10, -10, 10) (or whatever numbers you want).

2024-01-25 18:31:42 +0100 edited question plotting origin location

plotting origin location plotting some basic functions in sage, quadratic, abs value, etc. Then setting four up in an a

2024-01-18 20:57:28 +0100 commented question Symbolic arithmetic in a number field

You could try R(A) to convert the solution to an element of R. parent(R(A)) should return Univariate Polynomial Ring in

2024-01-18 18:47:39 +0100 edited question if we know that the vectors are dependant i need to determine the relation between v9 = vector([0, 0, -2, 0, 4, -2, 12, 8, -18]) and the following vectors

if we know that the vectors are dependant i need to determine the relation between v9 = vector([0, 0, -2, 0, 4, -2, 12,

2024-01-18 18:47:16 +0100 commented question if we know that the vectors are dependant i need to determine the relation between v9 = vector([0, 0, -2, 0, 4, -2, 12, 8, -18]) and the following vectors

Homework? In any case, what have you tried?

2024-01-17 22:58:17 +0100 commented question Issue with Polynomial Factorization

When it says "[Insert the exact error message you are receiving]", I suggest inserting the exact error message you are r

2024-01-17 22:57:19 +0100 commented question Symbolic arithmetic in a number field

Defining a as a polynomial generator over E helps some, but doesn't get what you want: a = polygen(E) and then evaluate

2024-01-11 18:32:05 +0100 answered a question fundamental group of a simplicial set?

Fundamental groups are only defined if you specify a base point. Given your setup: S_based = S.set_base_point(a) S_base

2023-12-28 00:14:27 +0100 commented question Power Series over q

Presumably there is a relationship between q and z?

2023-12-24 19:59:51 +0100 received badge  Nice Answer (source)
2023-12-24 18:05:16 +0100 answered a question Sage seems to accept a Python nonsense. Why ?

This is because of the Sage preparser — search for "raw literals" on that page. In particular "2r" is interpreted as a "

2023-12-21 18:41:50 +0100 commented answer Package management after PEP 668

You can also ask the package management people: once distros take over, they may make changes in the structure of the pa

2023-12-21 18:40:51 +0100 commented answer Package management after PEP 668

Maybe sudo sage --pip install ...?

2023-12-20 19:55:35 +0100 answered a question Package management after PEP 668

Sage uses a virtual environment. If you install with pip, for example, then I think you should do sage --pip install ...

2023-12-16 10:41:37 +0100 received badge  Good Answer (source)
2023-12-15 23:15:30 +0100 edited question Why is addition between a symbol and a Clifford algebra element unsupported?

Why is addition between a symbol and a Clifford algebra element unsupported? To reproduce error: from sage.algebras.cli

2023-12-14 10:18:43 +0100 received badge  Nice Answer (source)
2023-12-13 23:19:52 +0100 commented question Induced morphism on unreduced homology and relative homology

I don't think anything else is implemented, so the procedure you describe is probably the best thing.

2023-12-13 23:19:18 +0100 edited answer Where does sagemath's speed in calculating gcd come from?

On my computer (an old Mac), Sage 10.1.beta3, the gcd computation is slower than the second computation, as common sense

2023-12-13 23:11:46 +0100 edited answer Where does sagemath's speed in calculating gcd come from?

On my computer (an old Mac), Sage 10.1.beta3, the gcd computation is slower than the second computation, as common sense

2023-12-13 23:10:59 +0100 answered a question Where does sagemath's speed in calculating gcd come from?

On my computer (an old Mac), Sage 10.1.beta3, the gcd computation is slower than the second computation, as common sense

2023-12-13 04:36:04 +0100 commented answer chain morphism between subdivisions

The pull request now has a positive review, so it should be part of an upcoming beta release: possibly the next one, whi

2023-12-10 19:07:46 +0100 commented answer chain morphism between subdivisions

That's right: install the development version and pull in the fix. Or wait, but it might take a while, first to get revi