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. = 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. = 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)