Ask Your Question

Emmanuel Charpentier's profile - activity

2022-09-25 08:42:09 +0200 commented answer Batch processing

Since you insist on a text file, the Python documentation should answer your question. A remark : you are not solvng eq

2022-09-25 08:41:28 +0200 commented answer Batch processing

Since you insist on a text file, the Python documentation should answer your question. Noe in passing : you are not sol

2022-09-25 08:40:13 +0200 commented answer Batch processing

Since you insist on a text file, the Python documentation should answer your question.

2022-09-25 08:38:56 +0200 commented answer Batch processing

The Python documentation should answer your question.

2022-09-23 17:20:05 +0200 commented question Limit comparison test

Your problem seems to be the use of arguments in a Python function rather than Sage-specific. A few notes : Your code

2022-09-20 08:31:40 +0200 answered a question Batch processing

This tutorial and the relevant part of the manual should give you some inspiration... The very short version : load r

2022-09-20 05:16:11 +0200 received badge  Nice Answer (source)
2022-09-19 13:45:48 +0200 edited answer How to write integrals symbolically in Sagemath similar to Mathematica

∫ is Unicode's U+222B. Depending on your platform, this can be input in various ways. For example : On most Linux's te

2022-09-17 08:54:17 +0200 commented question definite_integral of max function

@FrédéricC : Would you mind making a proper answer for the benefit of future ask.sagemath.org perusers ?

2022-09-17 08:54:01 +0200 commented question definite_integral of max function

@FrédéricC : Would you mind making a roper answer for the benefit of future ask.sagemath.org perusers ?

2022-09-17 08:43:29 +0200 answered a question How to write integrals symbolically in Sagemath similar to Mathematica

∫ is Unicode's U+222B. Depending on your platform, this can be input in various ways. For example : On most Linux's te

2022-09-14 08:21:16 +0200 commented question Simplifying a simple rational expression with indeterminate exponent

@Juanjo : you should make an answer of your comment, for the benefit of future ask.sagemath.org perusers.

2022-09-11 10:45:13 +0200 answered a question How to extract list of vertices of Hamiltonian path

What's wrong with : sage: G = graphs.Grid2dGraph(5,5) sage: %time hp=G.hamiltonian_path(algorithm="backtrack") CPU time

2022-09-04 10:00:53 +0200 edited answer How to name new libraries/modules properly with conflictions with 3rd party code

you may import controlunder a name convenient for you. Example : sage: import sympy as sy now you can use "sy" to acc

2022-09-03 09:40:08 +0200 edited answer How to name new libraries/modules properly with conflictions with 3rd party code

you may import controlunder a name convenient for you. Example : sage: import sympy as sy now you can use "sy" to acc

2022-09-03 09:38:51 +0200 answered a question How to name new libraries/modules properly with conflictions with 3rd party code

you may import controlunder a name convenient for you. Example : sage: import sympy as sy now you can use "sy" to acc

2022-08-22 11:02:05 +0200 answered a question Subsets() with same element multiple times?

Well... Let's try to be lazy, and reuse work already done : sage: subsets? Docstring: Iterator over the *list*

2022-08-20 13:19:34 +0200 commented question How to serially number the output ?

@max-alekseyev/ : could you turn your comment into an answer, in order to help future perusers of ask.sagemath.org with

2022-08-20 13:14:21 +0200 commented question Effective resistance matrix and nonedgesonly=True

This interesting question regards the implementation choices made by the pakage's author(s), is indeed a mathematical qu

2022-08-20 13:13:15 +0200 commented question Effective resistance matrix and nonedgesonly=True

This interesting question regards the implementation choices made by the pakage's author(s), is a math question and coul

2022-08-20 13:12:59 +0200 commented question Effective resistance matrix and nonedgesonly=True

This interesting question regards the implementation choices made by the pakage's author(s), is a math question and coul

2022-08-12 07:41:03 +0200 commented question How to copy huge output in another code?

What is the problem with saving your "huge output" in a variable ?

2022-08-04 18:38:36 +0200 commented answer Solve fails to identify the maximum of the entropy function

Alternatives : sage: Ex=-(x*log(x)+(1-x)*log(1-x)) sage: solve(Ex.diff(x),x) [log(x) == log(-x + 1)] Fails indeed. bu

2022-08-04 18:37:00 +0200 commented answer Solve fails to identify the maximum of the entropy function

Alternatives : sage: Ex=-(x*log(x)+(1-x)*log(1-x)) sage: solve(Ex.diff(x),x) [log(x) == log(-x + 1)] Fails indeed. bu

2022-08-04 18:32:40 +0200 commented answer Solve fails to identify the maximum of the entropy function

Alternatives : sage: Ex=-(x*log(x)+(1-x)*log(1-x)) sage: solve(Ex.diff(x),x) [log(x) == log(-x + 1)] sage: solve(Ex.dif

2022-08-01 07:02:12 +0200 answered a question Writing a matrix as a sum of matrices

Well... This problem (decomposing a matrix as the sum of $p$ matrices with your constraints) can be turned in the search

2022-07-29 00:19:12 +0200 commented answer In a system of 5 nonlinear equations with 5 unknowns using the solve command, Sage gives 5 lists of 5 solutions. Is it possible to print only one list with the 5 third solutions?

The .variety() method of ideals returns someting only if its .dimension() is 0 ; in other cases, you have to search the

2022-07-29 00:09:27 +0200 commented answer Matrix dimensions being symbolic

Nope. After : sage: var("n, p") (n, p) the Python variable n is indeed bound to a symbolic variable (element of SR) :

2022-07-29 00:09:00 +0200 commented answer Matrix dimensions being symbolic

Nope. After : sage: var("n, p") (n, p) the Python variable n is indeed bound to a symbolic variable (element of SR) :

2022-07-29 00:07:30 +0200 commented answer Matrix dimensions being symbolic

Nope. After : sage: var("n, p") (n, p) Here, n is bound too a symbolic variable : sage: n.parent() Symbolic Ring B

2022-07-24 20:39:39 +0200 commented answer Writing a matrix as a sum of matrices

I took the liberty to edit your "answer" in order to get somethng barely legible. I hope that I haven't introduced error

2022-07-24 20:37:38 +0200 edited answer Writing a matrix as a sum of matrices

I asked this thing because a friend of mine made code for this but it is very time taking. For 2nd order matrices outp

2022-07-24 20:26:52 +0200 answered a question error interact in 9.6 on my computer but not on sagecell

Same problem here (9.7.beta5 sompiled from Git on Deban testing). But this : @interact def _(v=input_grid(1, 3,

2022-07-23 22:48:16 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

Solving via SR's solve isn't exact : given : var('a,b,c,d,e,f,g,x') Sys=[(a - g) + 2, - (a*g - b) - 1, - (b*g - c), -

2022-07-23 22:47:27 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

@georgeafr : @rburing is right. He was faster|smarter than me... My remark was not (even tentatively) an answer to your

2022-07-23 22:47:00 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

@georgeafr : @rburning is right. He was faster|smarter than me... My remark was not (even tentatively) an answer to your

2022-07-23 22:44:54 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

A better (checkable) solution is to use the ring of polynomials of QQbar : Vars=[str(u).upper() for u in vars] # My

2022-07-23 21:34:17 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

A better (checkable) solution is to use the ring of polynomials of QQbar : Vars=[str(u).upper() for u in vars] # My

2022-07-23 21:33:40 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

A better (checkable) solution is to use the ring of polynomials of QQbar : Vars=[str(u).upper() for u in vars] # My

2022-07-23 21:31:45 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

A better (checkable) solution is to use the ring of polynomials of QQbar : Vars=[str(u).upper() for u in vars] # My

2022-07-23 21:27:40 +0200 commented question Why, in any system of equations, does Sage give repeated solutions only once?

Solving via SR's solve isn't *exact` : given : var('a,b,c,d,e,f,g,x') Sys=[(a - g) + 2, - (a*g - b) - 1, - (b*g - c),

2022-07-23 17:52:24 +0200 commented answer Mittag-Leffler

In the same vein : sage: mathematica.MittagLefflerE? Signature: mathematica.MittagLefflerE(*args, **kwds) Type:

2022-07-19 21:18:53 +0200 commented question how to write an expression in latex without it being transformed by sage/sagetex

First embryo of an idea : work by generating strings representing your "raw" polynomials, format this to LaTeX (possibly

2022-07-19 21:11:53 +0200 commented question A sageCell question

Try this Google group...

2022-07-16 16:54:16 +0200 commented answer In a system of 5 nonlinear equations with 5 unknowns using the solve command, Sage gives 5 lists of 5 solutions. Is it possible to print only one list with the 5 third solutions?

A possibly cleaner solution (avoiding to define a truckload of unused symbolic variables and needlessly scratch predefi

2022-07-16 16:53:18 +0200 commented answer In a system of 5 nonlinear equations with 5 unknowns using the solve command, Sage gives 5 lists of 5 solutions. Is it possible to print only one list with the 5 third solutions?

A possibly cleaner solution (avoiding to define a truckload of unused symbolic variables and scratch needlessly predefin

2022-07-16 16:39:53 +0200 edited question In a system of 5 nonlinear equations with 5 unknowns using the solve command, Sage gives 5 lists of 5 solutions. Is it possible to print only one list with the 5 third solutions?

In a system of 5 nonlinear equations with 5 unknowns using the solve command, Sage gives 5 lists of 5 solutions. Is it p

2022-07-08 22:44:13 +0200 commented question Ubuntu on Windows cannot open notebook

@ortollj : for the benefit of future ask(per)users, could you turn your comments in a structured answer ?

2022-07-06 20:51:53 +0200 edited answer why there is no exact result with this fractions sum ?

from srange? : Docstring: Return a list of numbers "start, start+step, ..., start+k*step", where "start+k*st

2022-07-06 20:50:20 +0200 answered a question why there is no exact result with this fractions sum ?

from srange? : Docstring: Return a list of numbers "start, start+step, ..., start+k*step", where "start+k*st