Ask Your Question

John Palmieri's profile - activity

2025-03-11 17:47:06 +0100 commented answer If it possible to specify a factoring method?

Actually, their code uses both n and N; I think it's the use of N in valuation(N,p) which causes the problem. Anyway, us

2025-03-11 17:44:40 +0100 edited answer If it possible to specify a factoring method?

The factor method takes an algorithm keyword; have you looked at the documentation? In your case, since you know that t

2025-03-11 17:43:03 +0100 commented answer If it possible to specify a factoring method?

First, I suggested first checking whether p.divides(a) before dividing. Second, I've provided some untested code to keep

2025-03-11 17:41:48 +0100 edited answer If it possible to specify a factoring method?

The factor method takes an algorithm keyword; have you looked at the documentation? In your case, since you know that t

2025-03-10 01:10:32 +0100 commented question Inquiry About GSOC 2025: SageMath Project on Paths and Cycles Enumeration Methods

I think that you should ask questions about GSOC projects on the sage-gsoc Google group — see link at https://wiki.sagem

2025-03-08 19:35:38 +0100 answered a question If it possible to specify a factoring method?

The factor method takes an algorithm keyword; have you looked at the documentation? In your case, since you know that t

2025-03-07 18:19:59 +0100 commented question Is This A limitation of my Processing Power

Does it work if your file instead contains a smaller integer, say 5 digits?

2025-03-07 18:19:10 +0100 commented question Is This A limitation of my Processing Power

You should add f.close() after writing to the file; otherwise, the write operation may not complete.

2025-03-07 18:14:50 +0100 edited question Is This A limitation of my Processing Power

Is This A limitation of my Processing Power I'm trying to load a large number into Sage for factoring. I believe with t

2025-03-07 18:14:29 +0100 commented question Is This A limitation of my Processing Power

Does it work if your file instead contains a smaller integer, something easily factorable, say 5 digits?

2025-03-03 18:22:24 +0100 commented question plotting graphs, vertices on some graphs are very small

Also, what happens if you remove/modify the xmin and xmax arguments? Can you get the pictures you want?

2025-03-03 18:19:16 +0100 commented question plotting graphs, vertices on some graphs are very small

These graphs looks fine when I look at them separately, so it looks more like an issue with graphics_array than the indi

2025-03-02 18:29:08 +0100 received badge  Famous Question (source)
2025-02-28 19:40:45 +0100 commented question Loading an integer from .txt file to SageMath for factoring

Can you provide a toy example? Does your .txt file just contain something like "1023", or is there more in it than just

2025-02-27 19:57:52 +0100 answered a question How to print variables order of a polynomial ring?

Term order is not defined for single-variable polynomial rings, just for multivariable rings: sage: R2 = PolynomialRing

2025-02-27 19:52:01 +0100 edited question How to print variables order of a polynomial ring?

How to print variables order of a polynomial ring? Hello, I've a generic multivariate polynomial ring, for which I need

2025-02-21 19:52:47 +0100 commented question Problem with loading sagemath packages on jupyter notebook

SageMath 9.3 is about four years old. Is there any way for you to install a newer version? Sage 10.5 is the latest, rele

2025-02-21 19:35:45 +0100 edited question Error when computing torsion group

Error when computing torsion group I am trying to run this code t = var('t') K.<a> = NumberField(20*t^4 + 40*t^3

2025-02-08 02:12:03 +0100 edited answer The matrix equation $X^3+Y^3=3Z^3$

Not an answer but too long for a comment. Over a finite field like GF(2), you can iterate more quickly by iterating over

2025-02-08 02:07:03 +0100 edited answer The matrix equation $X^3+Y^3=3Z^3$

Not an answer but too long for a comment. Over a finite field like GF(2), you can iterate more quickly by iterating over

2025-02-08 01:32:18 +0100 answered a question The matrix equation $X^3+Y^3=3Z^3$

Not an answer but too long for a comment. Over a finite field like GF(2), you can iterate more quickly by iterating over

2025-02-07 22:56:03 +0100 commented question The matrix equation $X^3+Y^3=3Z^3$

If you do this over GF(2) or GF(3) with 2x2 matrices, you should find solutions (if you want to make sure that the code

2025-02-02 23:01:26 +0100 received badge  Good Answer (source)
2025-01-29 17:56:10 +0100 commented answer How can I distinguish between Sage and Python?

This tests whether Sage can be imported, not whether it already has been, and furthermore it imports it if it can be: it

2025-01-29 17:55:59 +0100 commented answer How can I distinguish between Sage and Python?

This tests whether Sage can be imported, not whether it already has been, and furthermore it imports if it can be: it ha

2025-01-29 14:36:07 +0100 received badge  Nice Answer (source)
2025-01-29 03:40:59 +0100 answered a question How can I distinguish between Sage and Python?

It depends on what you mean by "Sage is running". If you mean, "have the standard Sage commands, etc., been imported and

2025-01-27 21:58:08 +0100 commented question How to plot this

What's D[0]? What does "real_part" mean? What have you tried?

2025-01-27 04:59:18 +0100 commented question can not run without coxeter3. how to deal with it

The error message says coxeter3 must be installed. How did you install Sage? What OS are you using? What version of Sage

2025-01-25 00:46:29 +0100 commented question Regarding : Removing certain entries from a list of combinations

If you post a comment on the old question, then by default, anyone who has participated will get a notification.

2025-01-20 18:32:25 +0100 edited question How to factorize a polynomial in a Skew Polynomial Ring

How to factorize a polynomial in a Skew Polynomial Ring I am trying this code, but it is not giving any output. However,

2025-01-20 18:32:18 +0100 commented question How to factorize a polynomial in a Skew Polynomial Ring

What version of Sage are you using? Also, your post is contradictory: you say that it gives output for x^n+1 when n is a

2025-01-04 19:50:21 +0100 commented answer Solve for integer and real number

The alarm function can be used to interrupt computations.

2025-01-04 19:49:01 +0100 commented answer Solve for integer and real number

It should be possible to put integers into a solve function, but I don't know if it's possible to use solve for an index

2025-01-02 22:58:10 +0100 edited question Solve for integer and real number

Solve for integer and real number In a project I'm doing I stumbled on a way to solve something, but I don't know how I

2024-12-17 04:00:00 +0100 commented answer Attempt:Orthogonal projection of $\mathbb{C}^3$ onto image of linear operator

A link to the other question, in case it's useful to anyone: https://math.stackexchange.com/q/5011208/42781

2024-12-01 03:40:28 +0100 answered a question I try to make a class derived from IntegerMod_abstract but simply calling the super().__init__ already fails.

You need to define the method set_from_mpz in your new class: the __init__ method for IntegerMod_abstract calls it, but

2024-11-28 23:11:49 +0100 commented question Conversion from finite field to integer polynomial

b.polynomial() might be close to what you're looking for. You can also get the coefficients from b.list().

2024-11-28 23:10:55 +0100 commented question Conversion from finite field to integer polynomial

b.polynomial() might be close to what you're looking for.

2024-11-26 01:45:18 +0100 commented question error in factor

What's the difference between -a+c and c-a? Maybe I'm misunderstanding.

2024-11-19 23:01:12 +0100 received badge  Nice Answer (source)
2024-11-17 19:29:25 +0100 answered a question adding a new function to sage

Briefly, you should create a fork of Sage on your own GitHub account, and create a fork there. Then you can compare that

2024-10-31 05:40:09 +0100 received badge  Notable Question (source)
2024-10-13 23:02:41 +0100 commented question Cannot transpose the matrix with x.transpose()

Right, perhaps by a command like A = A.swap_columns(0,2). That's why I am asking for more information.

2024-10-13 19:09:22 +0100 commented question Cannot transpose the matrix with x.transpose()

Please provide more context, like any lines that might have (re)defined A. If I run consecutive commands A = matrix(2,3,

2024-10-11 20:16:56 +0100 commented question Class equation of a group

If G is your group, you could do [X.cardinality() for X in G.conjugacy_classes()]. Is that the information you want? I g

2024-10-11 20:15:29 +0100 commented question Class equation of a group

If G is your group, you could do [X.cardinality() for X in G.conjugacy_classes()]. Is that the information you want?

2024-10-05 08:43:23 +0100 received badge  Nice Answer (source)
2024-10-04 21:36:30 +0100 answered a question Symbolic integration with parameter

You can add the keyword "hold" to integrate. Initial version: sage: t=var('t') sage: J(kk)=integrate(exp(-2*pi*I*kk*t),

2024-10-01 02:36:17 +0100 commented question How to make edges Curve with Plot

I'm not completely clear on what you want. Can you provide more details or more explanation?