Ask Your Question

slelievre's profile - activity

2025-06-17 10:46:59 +0200 commented answer How to realize the composition of rational function mappings with Sagemath?

After defining R, define the ideal generated by x^q - x and y^q - y, and the quotient of R by that ideal. That hint shou

2025-06-17 10:32:25 +0200 commented answer How to list weak compositions?

It would be nice to have a "See also: IntegerVectors" in the documentation for Compositions.

2025-06-02 21:45:05 +0200 commented question An issue with integrals involving absolute value

Welcome to Ask Sage. Thank you for your question.

2025-06-02 21:44:39 +0200 edited question An issue with integrals involving absolute value

An issue with integrals involving absolute value I have been using SageMathCell for a while and some things that used to

2025-05-14 08:01:25 +0200 edited question "ModuleNotFoundError" après "import"

Bojour, je suis un peu bleu sur sagemath. Je cherche à connecter deux fichiers avec "import", mais sage me retourne "Mod

2025-05-14 08:00:22 +0200 edited question "ModuleNotFoundError" après "import"

Bojour, je suis un peu bleu sur sagemath. Je cherche à connecter deux fichiers avec "import", mais sage me retourne "Mod

2025-05-14 07:58:47 +0200 edited question Uniqueness of an integer solution to a nonlinear polynomial system with integer coefficients

How do you check the uniqueness of an integer solution in a nonlinear system with integer coefficients in sagemath? And

2025-05-06 01:22:51 +0200 answered a question Error when calling CRT with list of 1 python int

One way to fix that would be, in the file https://github.com/sagemath/sage/blob/10.7.beta2/src/sage/arith/misc.py to

2025-05-06 00:51:03 +0200 edited question Kernel busy after integrate command

I created the next code , but when I run it it says me "Kernel is busy (interrupt)" and it does not give me the value of

2025-05-06 00:49:48 +0200 edited question Kernel busy after integrate command

I created the next code , but when I run it it says me "Kernel is busy (interrupt)" and it does not give me the value of

2025-05-03 10:26:53 +0200 commented question Sage cannot solve non-linear polynomial systems symbolically!

Tip: in the Ask Sage search box, type: polynomial system.

2025-05-03 10:22:51 +0200 answered a question How to write sage program x congruent to -1 (mod (n-1))

Given x and n, let us test whether x is congruent to -1 modulo n - 1. For this let us write a function. The test is ba

2025-05-02 13:26:28 +0200 edited answer Manipulate symbolic vector expressions?

The triple product is not present in Sage, as far as I know. But it takes one line using cross-product and dot-product,

2025-05-02 13:21:59 +0200 edited answer Manipulate symbolic vector expressions?

The triple product is not present in Sage, as far as I know. But it takes one line using cross-product and dot-product,

2025-05-02 13:17:18 +0200 answered a question Manipulate symbolic vector expressions?

The triple product is not present in Sage, as far as I know. But it takes one line using cross-product and dot-product,

2025-04-11 03:04:03 +0200 commented question Problem with loading sagemath packages on jupyter notebook

You can install sage-flatsurf (which installs SageMath plus some packages to work with flat surfaces). See instructions

2025-04-10 23:20:56 +0200 answered a question ZeroDivisionError and segmentation fault when subtracting rational functions

The reported bug can be reproduced in conda-installed Sage 10.5 on Linux Mint. Simpler trigger: sage: R = PolynomialRi

2025-04-10 16:53:12 +0200 edited question Plotting difference in CoCalc and local Sage installation

Plotting difference in CoCalc and local Sage installation I try to figure out why plots in SageMath look so much nicer i

2025-03-27 10:48:05 +0200 received badge  Good Answer (source)
2025-03-12 12:46:19 +0200 answered a question why does L_polynomial not work?

It seems that, in Sage, only global function fields have an L_polynomial method. See the documentation for the L_poly

2025-03-12 12:27:51 +0200 commented answer If it possible to specify a factoring method?

Use either for p in (5, 7, 11) or for p in primes(5, 12) instead of for p in primes(5, 7, 11).

2025-03-09 14:32:34 +0200 received badge  Notable Question (source)
2025-02-12 19:28:09 +0200 commented question Strange scale on x-axis for large value

And also ticket 37502: Fix incorrect large scale y-axis labels of 2D plots ticket 34233: Missing scientific scale in y

2025-02-12 19:23:29 +0200 commented question Strange scale on x-axis for large value

See also these and the links there: Ask 77429: Incorrect plot Ask 63469: Plot drops exponent when sci notation on y-ax

2025-02-12 19:23:14 +0200 commented question Strange scale on x-axis for large value

See also these and the links there: - Ask 77429: Incorrect plot - Ask 63469: Plot drops exponent when sci notation on y-

2025-01-31 23:20:42 +0200 received badge  Good Answer (source)
2025-01-31 18:31:44 +0200 commented question How to plot this

Could you provide the code that produced the example? Fiddling with it might provide something easier to read and to pl

2025-01-31 18:30:57 +0200 answered a question How to plot this

It seems you want to plot a curve in 3d, parametrized by t. The example provided in the question has problems: parent

2025-01-31 17:59:05 +0200 received badge  Nice Answer (source)
2025-01-31 17:49:48 +0200 answered a question How should polynomials be defined in a given polynomial ring?

The code in the question defines a polynomial ring R and its polynomial variables a function of two variables, f, and

2025-01-31 17:35:48 +0200 edited question How should polynomials be defined in a given polynomial ring?

How should polynomials be defined in a given polynomial ring? Using SageMath 10.5, if I enter R.<x,y>=PolynomialR

2025-01-15 06:14:44 +0200 commented question Can I use mathematica programs

See also SageMath's interface to Mathics.

2025-01-15 06:11:44 +0200 commented question How to determine equality of symbolic expressions?

For the record: https://github.com/sagemath/sage/issues/39319

2024-12-30 19:54:12 +0200 received badge  Nice Answer (source)
2024-12-29 00:29:14 +0200 commented answer PLU factorisation in Sage

SageMath documentation references.

2024-12-29 00:13:47 +0200 commented question How do you simplify the following expression in Sage?

Note: also asked as Stack Overflow question 79309746.

2024-12-29 00:12:44 +0200 answered a question How do you simplify the following expression in Sage?

The problem could be with how f was defined. In particular if it was defined as an expression rather than a function.

2024-12-18 19:57:52 +0200 answered a question Mark pivot positions in a matrix

Each matrix m has a method m._latex_ that gives its LaTeX form. Having defined a matrix m, we can use m._latex_? or m._

2024-11-19 13:18:10 +0200 received badge  Nice Answer (source)
2024-11-19 12:10:00 +0200 edited question the integral of modular forms

the integral of modular forms I compute the integral of modular forms using the PARI command in SageMath as follows. de

2024-11-19 12:06:04 +0200 commented question integration of real functions

Welcome to Ask Sage! Thank you for your question!

2024-11-19 12:05:12 +0200 edited answer Find algebraic solutions to system of polynomial equations

Polynomial systems [Edited 2024-11-19: give current url for the book; mention its translations] Chapter 9 of the ope

2024-11-19 11:58:02 +0200 commented answer Download mirrors and the Sage-Windows installer

Hi Henri, unfortunately my test version did not work, and the effort to produce a cygwin-based Sage-Windows has been dis

2024-08-28 18:38:14 +0200 commented question can i define a metric using 'tensorwithindices', such that it is defined as one entity only and not by 16 components?

@aneet ideally, include all the code snippets in the question, rather than in comments. To understand @dan_fulea's answ

2024-08-11 22:02:22 +0200 answered a question Pickling error with multiprocessing

Addressing the question in your comment, rather than the original question. Here is how to install the multiprocess pac

2024-08-10 01:54:36 +0200 received badge  Nice Answer (source)
2024-04-02 17:49:38 +0200 edited answer Dynamic documentation, how to use EXAMPLE:: tag?

One option is to add a "random" tag. Then, when testing, the value of the output will be ignored. Running the test wil

2024-04-02 16:50:52 +0200 answered a question Dynamic documentation, how to use EXAMPLE:: tag?

One option is to add a "random" tag. Then, when testing, the value of the output will be ignored. Running the test wil

2024-03-13 12:18:14 +0200 received badge  Good Answer (source)
2023-12-05 15:51:31 +0200 commented answer How to collect the derivatives in an expression for a scalar field

Tip: use parentheses and skip end-of-line backslash. ( commutator_f.expr() .collect(diff(f)[0].expr())