Ask Your Question

tmonteil's profile - activity

2021-07-29 15:17:44 +0200 edited answer Calculation with arbitrary precision

You can first solve the integral symbolically : sage: i = integral(exp(-1/x)/x,x,0,1) sage: i -Ei(-1) You can get inf

2021-07-29 14:59:40 +0200 edited answer multivariate polynomial ring over complex numbers

It seems not implemented on the floating-point complex numbers, nor on the complex algebraic numbers: sage: R.<x,y&g

2021-07-29 14:58:40 +0200 edited answer multivariate polynomial ring over complex numbers

It seems not implemented on the floating-point complex numbers, nor on the complex algebraic numbers: sage: R.<x,y&g

2021-07-29 14:57:11 +0200 edited answer multivariate polynomial ring over complex numbers

It seems not implemented on the floating-point complex numbers, nor on the complex algebraic numbers: sage: R.<x,y&g

2021-07-29 14:54:18 +0200 edited answer multivariate polynomial ring over complex numbers

It seems not implemented on the floating-point complex numbers, nor on the complex algebraic numbers: sage: R.<x,y&g

2021-07-29 14:53:44 +0200 edited answer multivariate polynomial ring over complex numbers

It seems not implemented on the floating-point complex numbers, nor on the complex algebraic numbers: sage: R.<x,y&g

2021-07-29 14:49:31 +0200 edited answer multivariate polynomial ring over complex numbers

It seems not implemented on the floating-point complex numbers, nor on the complex algebraic numbers: sage: R.<x,y&g

2021-07-29 14:11:53 +0200 edited answer Calculation with arbitrary precision

You can first solve the integral symbolically : sage: i = integral(exp(-1/x)/x,x,0,1) sage: i -Ei(-1) You can get inf

2021-07-29 14:10:04 +0200 answered a question Calculation with arbitrary precision

You can first solve the integral symbolically : sage: i = integral(exp(-1/x)/x,x,0,1) sage: i -Ei(-1) Then, you can c

2021-07-28 19:33:59 +0200 received badge  Good Answer (source)
2021-07-22 14:29:25 +0200 commented question TypeError: dist must be a Distribution instance

You should provide more details on how to reproduce the issue. What is different with that ipynb file ?

2021-07-22 09:08:29 +0200 received badge  Nice Answer (source)
2021-07-22 00:46:36 +0200 answered a question Only the most basic stuff needed

How to Sage install on linux (maybe not needed, because it was installed) see https://doc.sagemath.org/html/en/insta

2021-07-19 22:54:23 +0200 commented answer I want to display the origin on the graph.

I edited my answer.

2021-07-19 11:25:51 +0200 edited answer I want to display the origin on the graph.

Could you please make your question more precise ? The origin is located at the intersection of the axes: sage: graph +

2021-07-17 23:51:52 +0200 received badge  Good Answer (source)
2021-07-17 23:41:10 +0200 commented question AttributeError when load object (ideal and groebner basis) with numpy.load

Could you please provide the whole code so that we can reproduce ?

2021-07-16 18:56:09 +0200 received badge  Nice Answer (source)
2021-07-16 11:00:05 +0200 answered a question I want to display the origin on the graph.

Could you please make your question more precise ? The origin is located at the intersection of the axes: sage: graph +

2021-07-15 20:46:56 +0200 received badge  Nice Answer (source)
2021-07-14 21:39:35 +0200 edited question numeric precision unexpectedly low

numeric precision unexpecedly low I try to integrate a probability density function over an fixed interval. Can't give

2021-07-14 21:37:46 +0200 answered a question numeric precision unexpectedly low

You should have a look at the expression test, wich is a very huge. Hence, when turned numerical, a lot of roundings acc

2021-07-14 19:52:44 +0200 edited answer find the first power of $t$ with a non-positive coefficient

You can use power series as follows: sage: q=4 ; m=33 ; k=31 sage: R.<t> = PowerSeriesRing(QQ) sage: f = ((1-t^q)

2021-07-14 19:51:13 +0200 answered a question find the first power of $t$ with a non-positive coefficient

You can use power series as follows: sage: q=4 ; m=33 ; k=31 sage: R.<t> = PowerSeriesRing(QQ) sage: f = ((1-t^q)

2021-07-11 08:59:19 +0200 received badge  Nice Answer (source)
2021-07-10 16:57:59 +0200 edited answer Are symbols guaranteed unique ?

As a general rule, i would recommend not to use the same term for symbols and polynomial indeterminates. Regarding your

2021-07-10 16:55:28 +0200 answered a question Are symbols guaranteed unique ?

As a general rule, i would recommend not to use the same term for symbols and polynomial indeterminates. Regarding your

2021-07-09 18:28:24 +0200 received badge  Nice Answer (source)
2021-06-30 22:54:41 +0200 commented answer Is it possible for the spectrum() method to use all CPU cores?

The way you did works for me, if i replace @parallel with @parallel(ncpus=8)

2021-06-30 22:54:14 +0200 edited answer Is it possible for the spectrum() method to use all CPU cores?

SInce you have to run the computation on various graphs, you can do some basic parallelism provided by the @parallel dec

2021-06-30 22:51:51 +0200 commented answer Is it possible for the spectrum() method to use all CPU cores?

The way you did seems to work for me.

2021-06-30 22:51:30 +0200 commented answer Is it possible for the spectrum() method to use all CPU cores?

It seems to work for me.

2021-06-30 18:46:00 +0200 answered a question Is it possible for the spectrum() method to use all CPU cores?

SInce you have to run the computation on various graphs, you can do some basic parallelism provided by the @parallel dec

2021-06-30 01:56:45 +0200 edited answer Define matrix indexed by partitions

I am not sure about the notation $\lambda'$ so let me assume that it is the conjugate. First, to build a matrix, you ha

2021-06-29 21:48:31 +0200 answered a question Define matrix indexed by partitions

I am not sure about the notation $\lambda'$ so let me assume that it is the conjugate. First, to build a matrix and to

2021-06-28 18:43:07 +0200 answered a question Bug? Polynomial variable name matters

Thanks for reporting, this is clearly a bug, i can reproduce it on latest Sage version 9.4.beta3, it is know tracked at

2021-06-27 16:31:50 +0200 edited answer i doesn't belong to QQbar ? Why ?

This is definitely a bug, thanks for reporting! As you can see in the source code: sage: QQbar.__contains__?? the tes

2021-06-24 14:02:10 +0200 answered a question Error: unsupported operand type for ^ or pow(): 'list' and 'int' (Newbie)

Square brackets are used to define lists, but you can nest parentheses: sage: pi_m = ((1+d)*g_1 + r*(1-d*mu)-c*d^2)^(2)

2021-06-24 02:43:02 +0200 edited answer how can I manipulate a multiplicative group of Zmod(n)

For those interested, there is a parallel discussion on that topic on sage-devel : https://groups.google.com/g/sage-deve

2021-06-24 02:42:53 +0200 answered a question how can I manipulate a multiplicative group of Zmod(n)

For those interester, there is a parallel discussion on that topic on sage-devel : https://groups.google.com/g/sage-deve

2021-06-22 19:25:06 +0200 answered a question Error in finding cliques

Apparently, the matrix A has some nonezero entries along the diagonal, which is not allowed for adjacency matrices. We c

2021-06-22 19:23:25 +0200 commented question Error in finding cliques

Could you please provide a way to fetch the 42-matrix-of-size-378.txt file so that we can see the actual issue ? If this

2021-06-22 09:34:23 +0200 answered a question way to subs var by matrix in polynomial

You can use one of the following: sage: p.subs({x:X,y:Y}) sage: p.subs(x=X,y=Y) The first passes a dictionary to the

2021-06-21 21:18:36 +0200 received badge  Nice Answer (source)
2021-06-21 20:14:54 +0200 answered a question unexpected(?) conversion to float while raising an integer to power -1

This is the expected behaviour. When you type 29, the Sage preparser ensures that this number is considered as a Sage in

2021-06-21 19:51:12 +0200 answered a question what happened on ask.sagemath.org ?

The website https://ask.sagemath.org/ is currently hosted in the computer science lab of the university Paris north (a.k

2021-06-18 20:45:02 +0200 received badge  Nice Answer (source)
2021-06-18 09:34:28 +0200 answered a question solve() Function Returns Input Equations

When solve returns the original system of equations, it means that it was not able to solve it. solve relies on symbolic

2021-06-17 09:02:03 +0200 commented answer How do you assign (different) LaTex names to elements of a list?

Idem, use double braces around v.

2021-06-16 22:13:49 +0200 edited answer How do you assign (different) LaTex names to elements of a list?

You sould use double the braces as follows: v = {(i,j): var("v_{}{}".format(i, j), latex_name="v_{{{}{}}}".format(i, j)