Re: [sage-support] Re: No doctests are executed in sage/modular/pollack_stevens/padic_lseries.py

2024-06-13 Thread Vincent Delecroix
Generalizing the problem of the OP : it is a severe issue that a tag can completely prevent a file from being tested. On Thu, 13 Jun 2024 at 11:23, Jens-Erik Riedel wrote: > > Thanks to a hint by Dima I found the same typo in two other files. > In sage/structure/factory.pyx line 523 it prevents

Re: [sage-support] Functions source code

2024-05-02 Thread Vincent Delecroix
You could also have a look directly online https://github.com/sagemath/sage/blob/develop/src/sage/graphs/generic_graph.py#L24000 On Thu, 2 May 2024 at 10:46, David Joyner wrote: > > On Thu, May 2, 2024 at 3:57 AM Andrea Zatti > wrote: > > > > I am currently engaged in the study of graph

Re: [sage-support] Sagemanifolds error in example notebook

2024-02-07 Thread Vincent Delecroix
The error you get indicates that "exterior_der" is not a valid operation. Maybe you want "exterior_derivative()"? On Wed, 7 Feb 2024 at 13:16, Dominic Steinitz wrote: > > I am in the examples folder trying to run > > Electromagnetism in Minkowski spacetime [ipynb] (Electromagnetic field 2-form

Re: [sage-support] Contributing to SageMath

2023-08-28 Thread Vincent Delecroix
All the development is happening on github and is public. For graph theory, have a look at https://github.com/sagemath/sage/issues?q=is%3Aissue+label%3A%22c%3A+graph+theory%22+ On Mon, 28 Aug 2023 at 09:23, Saatvik Rao wrote: > > I was looking for graph algorithms that have not been implemented

Re: [sage-support] Importing sympy breaks CyclotomicField

2023-08-20 Thread Vincent Delecroix
I imagine the preparser could be made more robust with sage: preparse("32") 'sage.rings.integer.Integer(32)' On Sat, 19 Aug 2023 at 02:08, Nils Bruin wrote: > > Perhaps superfluously: the reason why redefining `Integer` (in your example > through "from sympy import *") can break a command in

Re: [sage-support] Special linear group of finite ring is finite?

2023-04-12 Thread Vincent Delecroix
Indeed, the problem comes from two methods calling each other * S.order (inherited from sage/groups/group.pyx) * S.cardinality (inherited from sage/categories/finite_groups.py) I filled a bug report https://github.com/sagemath/sage/issues/35490 On Wed, 12 Apr 2023 at 18:15, Liam Baker wrote: >

Re: [sage-support] How to generate induced subgraphs of 3D integer lattice?

2023-03-02 Thread Vincent Delecroix
I would rather use https://github.com/sagemath/sage/issues/32136! On Thu, 2 Mar 2023 at 09:36, Dima Pasechnik wrote: > > > On Thu, Mar 2, 2023 at 8:42 AM Monica Bapna > wrote: > >> I want to find out undirected, connected, non-isomorphic graphs having >> upto 9 vertices which are induced

Re: [sage-support] New edition of undergraduate book?

2022-09-29 Thread Vincent Delecroix
Hello, Is this https://bookstore.ams.org/mbk-143/ ? Vincent On Thu, 29 Sept 2022 at 09:31, Fernando Salamero wrote: > > Hello! > > Some news about the new edition of "Sage for Undergraduates"? I think it was > announced for august. > > Thanks! > > -- > You received this message because you

Re: [sage-support] evaluation of polynomials mod 8

2022-09-27 Thread Vincent Delecroix
The iterated subs turns out to be correct sage: F.subs(X=4).subs(Y=2) 0 sage: F.subs(Y=2).subs(X=4) 0 But not the one shot version (which is supposedly equivalent to the evaluation) sage: F.subs(X=4, Y=2) 6 There is definitely something wrong!! Vincent On Tue, 27 Sept 2022 at 10:46, John

Re: [sage-support] Sagemath 9.5 kernel crash from GF(2) empty vector dot product

2022-05-06 Thread Vincent Delecroix
Thanks for your report. I opened https://trac.sagemath.org/ticket/33814 Best Vincent Le 06/05/2022 à 06:04, Tracy Hall a écrit : The following two lines crash the kernel in 9.5 but not 9.4: xx = vector(GF(2), []) xx * xx It works correctly (with answer 0) over other finite fields or over

[sage-support] testing whether an ideal of QQ[x1,...,xn] is equal to its radical over CC

2022-03-16 Thread Vincent Delecroix
Dear all, I am lost in my algebra. Given an ideal in QQ[x1,...,xn] how do I test whether rad(I tensor CC) = I tensor CC ? Best Vincent -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails

Re: [sage-support] Some bug in SymmetricFunctions over QQ['t']

2022-02-07 Thread Vincent Delecroix
I opened the following ticket https://trac.sagemath.org/ticket/33313 to track and hopefully solve the issue. Thanks for your report. Best Vincent Le 08/02/2022 à 08:20, Vincent Delecroix a écrit : The element constructor looks buggy to me as it stores coefficients which are not in the base

Re: [sage-support] Some bug in SymmetricFunctions over QQ['t']

2022-02-07 Thread Vincent Delecroix
The element constructor looks buggy to me as it stores coefficients which are not in the base ring sage: a = s([[2],[1]]) sage: a.coefficients()[0].parent() Integer Ring The division that is happening is (Integer 1) / (Integer 2) which is indeed impossible in the Integer Ring. This should have

Re: [sage-support] discord

2022-01-23 Thread Vincent Delecroix
Dear William, You could redirect sage question of Cocalc users to https://ask.sagemath.org/ A lot of questions are already answered and a lot of developers are registered and active (including the sage manifold ones). Best Vincent Le 15/12/2021 à 23:20, William Stein a écrit : Here's

Re: [sage-support] linbox compilation failed (9.4.beta3, conda)

2021-06-28 Thread Vincent Delecroix
thanks. Now https://trac.sagemath.org/ticket/32076 Vincent Le 28/06/2021 à 17:42, Isuru Fernando a écrit : It's fine to add that option to build/pkgs/linbox/spkg-install.in Isuru On Mon, Jun 28, 2021 at 10:17 AM Vincent Delecroix < 20100.delecr...@gmail.com> wrote: Did that. A

Re: [sage-support] linbox compilation failed (9.4.beta3, conda)

2021-06-28 Thread Vincent Delecroix
Did that. And got Successfully installed linbox-1.6.3.p1 However, what is the proper long term fix for sagemath? Vincent Le 28/06/2021 à 16:58, Isuru Fernando a écrit : Can you try passing `--with-ocl=no` to linbox's configure? Isuru On Mon, Jun 28, 2021 at 9:44 AM Vincent Delecroix <20

Re: [sage-support] I would like to interface with the latest (unstable) version of PARI.

2021-06-17 Thread Vincent Delecroix
init.sage is not enough as you need to recompile a subset of sage. The simplest way that I know of is to 1) package a home made release of pari-master 2) follow the process of upgrading a package in sage (ie update the informations at $SAGE_ROOT/build/pkgs/pari) 3) re-install pari (run "sage

Re: [sage-support] Re: QQbar operations extremely slow ; is this normal ?

2021-06-11 Thread Vincent Delecroix
You can ask Thierry to finish his ticket https://trac.sagemath.org/ticket/15944 It was started 7 years ago and the description says "The doc is not yet finished, but should be quite soon." That would be a good start :) Le 11/06/2021 à 22:55, Emmanuel Charpentier a écrit : Very nice ! I

Re: [sage-support] Re: QQbar operations extremely slow ; is this normal ?

2021-06-11 Thread Vincent Delecroix
Le 11/06/2021 à 20:22, Dima Pasechnik a écrit : On Fri, 11 Jun 2021, 18:25 Emmanuel Charpentier, < emanuel.charpent...@gmail.com> wrote: OK. That was not an error of mine (nor my Sage installation), but a a genuine problem. So no indication to file a ticket. Note : Numerics with"standard" are

Re: [sage-support] Error while installing sage

2021-04-26 Thread Vincent Delecroix
This might have an answer here https://ask.sagemath.org/question/51555/ubuntu-1804-apt-install-modulenotfounderror-no-module-named-sage/ Le 25/04/2021 à 18:25, Sushovan Mondal a écrit : Dear All, I am trying to install sage math on my laptop which has UBUNTU 18.04.5 LTS as the operating

Re: [sage-support] NumberFieldEmbedding gets confused with relative number fields

2021-04-24 Thread Vincent Delecroix
: phi0(sqrt2) 1.414213562373095? sage: phi1(sqrt2) 1.414213562373095? + 0.?e-17*I sage: phi2(sqrt2) 1.414213562373095? + 0.?e-17*I Le 24/04/2021 à 21:43, Vincent Delecroix a écrit : Hello Ilia, It is even more broken than that (on 9.3.rc4) sage: K. = QuadraticField(2, embedding=1.414) sage: L

Re: [sage-support] NumberFieldEmbedding gets confused with relative number fields

2021-04-24 Thread Vincent Delecroix
Hello Ilia, It is even more broken than that (on 9.3.rc4) sage: K. = QuadraticField(2, embedding=1.414) sage: L. = K.extension(x^3 + (sqrt2/2 + 1/3)*x^2 + (2*sqrt2/5+3/7)*x - 1) sage: roots = L.relative_polynomial().roots(QQbar, multiplicities=False) sage: from

Re: [sage-support] Find group from matrix presentation

2021-03-24 Thread Vincent Delecroix
What does it mean "it presents Z5"? Le 24/03/2021 à 09:28, Mattia Villani a écrit : That matrix comes from the paper by J.Hempel: "Homology of covering" Pac. J. Math. vol 112 (1984) 83, example 5.2. The author says that it presents Z5 Il giorno mercoledì 24 marzo 2021 alle 08:50:18 UTC+1

Re: [sage-support] Find group from matrix presentation

2021-03-24 Thread Vincent Delecroix
Your matrix has determinant 4 - 9 = -5. Hence, the group it generates in GL(2,QQ) is necessarily infinite. Le 24/03/2021 à 08:47, Mattia Villani a écrit : I do not have real code, only a matrix: matrix([[1,-3],[-3,4]]) which should be a representation of the group Z5: I want to verify it with

Re: [sage-support] Windows install problems

2021-03-14 Thread Vincent Delecroix
Dear Fernando, The error should be reported to https://github.com/sagemath/sage-windows If you do so, include a more complete description of your settings. That is - your operating system (ie which Windows version) - the version of the SageMath Windows installer you tried (ie 0.6.1 or 0.6.2

Re: [sage-support] About Polyhedron

2021-02-07 Thread Vincent Delecroix
Note that these are 37 inequalities and not 65. Le 07/02/2021 à 19:41, Vincent Delecroix a écrit : Dear Juan, With sage 9.2 I obtain very quickly the output An inequality (-1, -1, -1, 0, 0, 0, 1) x + 2 >= 0 An inequality (0, -1, 0, 0, 0, 0, 0) x + 1 >= 0 An inequality (-1, 0, 0, 0, 0, 0

Re: [sage-support] About Polyhedron

2021-02-07 Thread Vincent Delecroix
Dear Juan, With sage 9.2 I obtain very quickly the output An inequality (-1, -1, -1, 0, 0, 0, 1) x + 2 >= 0 An inequality (0, -1, 0, 0, 0, 0, 0) x + 1 >= 0 An inequality (-1, 0, 0, 0, 0, 0, 0) x + 1 >= 0 An inequality (0, 0, -1, 0, 0, 0, 0) x + 1 >= 0 An inequality (-1, 1, 0, 0, 0, 0, -1) x + 1

Re: [sage-support] Calling Words in a function gives an error

2021-01-28 Thread Vincent Delecroix
I would say, better to avoid it. That is a personal comment. Vincent Le 27/01/2021 à 18:48, G. M.-S. a écrit : So if I understand you well, "x in P" should not be used for serious work? Guillermo On Wed, 27 Jan 2021 at 08:55, Vincent Delecroix <20100.delecr...@gmail.com>

Re: [sage-support] Calling Words in a function gives an error

2021-01-26 Thread Vincent Delecroix
Oups, I forgot to copy all the relevant input sage: a = 1. Vincent Le 26/01/2021 à 19:38, G. M.-S. a écrit : Just out of curiosity: What is "a"? Guillermo On Tue, 26 Jan 2021 at 09:29, Vincent Delecroix <20100.delecr...@gmail.com> wrote: And what should

Re: [sage-support] Calling Words in a function gives an error

2021-01-26 Thread Vincent Delecroix
Le 25/01/2021 à 23:52, Nils Bruin a écrit : On Monday, January 25, 2021 at 7:09:32 AM UTC-8 Nikos Apostolakis wrote: Dear Nils, [...] I think treating rational integers as integers is safe. Actually Sage does that sage: 8/2 in ZZ True So to have a function with integer input throw an

Re: [sage-support] Re: Trouble getting *collect* to work with derivatives.

2021-01-24 Thread Vincent Delecroix
Dear Christian, Given the specifications, I suspect that the function collect only works for variables. And indeed sage: expr = (x+y)*(z+t) + (x+y)*(1+z^2) + 2 sage: expr (z^2 + 1)*(x + y) + (t + z)*(x + y) + 2 sage: expr.collect(x+y) (z^2 + 1)*(x + y) + (t + z)*(x + y) + 2 Instead

Re: [sage-support] Calling Words in a function gives an error

2021-01-21 Thread Vincent Delecroix
Dear Nikos, When you write code it is important to understand what part triggered the error and reduce the error to the minimum. In your situation you can reproduce the very same error with the three lines sage: m = 11 sage: l = (m-1)/2 -1 sage: ws = Words(m,l) In particular it has nothing to

Re: [sage-support] Re: factorial

2020-11-30 Thread Vincent Delecroix
Le 30/11/2020 à 00:48, slelievre a écrit : 2020-11-29 21:23:36 UTC, Guillermo: I wonder what would be wrong with replacing '!' → '.factorial()' Interesting idea. Just be careful with `!=` of course. Indeed the expression "3!=3" is ambiguous... Of course one can choose a priority (3!)=(3)

Re: [sage-support] solve and numerical answers

2020-09-14 Thread Vincent Delecroix
One way is to use polynomials sage: x = polygen(QQ) sage: (x^4 - 2*x - 1).roots(RealField(32), multiplicities=False) [-0.474626618, 1.39533699] sage: (x^4 - 2*x - 1).roots(ComplexField(128), multiplicities=False) [-0.47462661756260555032941320989493141267,

Re: [sage-support] Re: numerical simplification

2020-07-28 Thread Vincent Delecroix
One solution is to map the expression into polynomial expressions with variable 'a' and 'r' over the floating point numbers sage: a,r = SR.var('a,r'); sage: expr = ((sqrt(2)*a-2*r)/(2+2*sqrt(2))) sage: RDF['a,r'](expr) 0.2928932188134525*a - 0.4142135623730951*r (this is not very robust as it

Re: [sage-support] Verifying assembler math is correct

2020-07-01 Thread Vincent Delecroix
Don't use ZZ as a base ring for your polynomial ring but Zmod(2**64). sage: R. = PolynomialRing(Zmod(2**64), 3) sage: x * 2**64 0 Vincent Le 01/07/2020 à 22:00, Kurt Roeckx a écrit : Hi, I'm working on a project that reads an assembler file and converts that to sage to help verify that the

Re: [sage-support] Single returns with iteration in a range

2020-06-23 Thread Vincent Delecroix
First of all if p and q are primes then p - q is even unless p=2 or q=2. Next, there is no need to declare variable in Python. Finally, there are optimized methods to access primes. Look for prime_range, next_prime, Primes, etc x = 3 while True: y = (10**18 // x).next_prime() ymax =

Re: [sage-support] Conda install: docs?

2020-06-14 Thread Vincent Delecroix
Indeed, the documentation is apparently not installed. The package manager seems to assume that you should go online for it. See https://github.com/conda-forge/sage-feedstock/issues/53 Best Vincent Le 15/06/2020 à 01:31, John H Palmieri a écrit : When I follow the directions at

Re: [sage-support] Sagemath saving results

2020-05-07 Thread Vincent Delecroix
Le 06/05/2020 à 00:10, Mauro Weber a écrit : for G in I: if G.is_tree(): If you want to iterate over trees don't filter them by generating all graphs. This is a huge waste of time # graphs(n) "=" 2^(n^2) / n! # trees(n) "=" Catalan(n) Trees are easy to generate up to isomorphism. Vincent

Re: [sage-support] Error running the postinst script for pplpy-0.8.4

2020-05-06 Thread Vincent Delecroix
https://groups.google.com/forum/#!topic/sage-support/UP9siQO00vs Le 06/05/2020 à 17:34, Carlos Rodriguez a écrit : Ubuntu 20.4 on imac late 2013. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop

Re: [sage-support] equation solution in integer

2020-04-19 Thread Vincent Delecroix
In this particular instance, I would rather write down the loop. It is not hard to make the loop general for any bound on x and y and any sum. sum = 15 xmin = 1 xmax = 9 ymin = 1 ymax = 9 for x in range(max(xmin, sum-ymax), min(xmax, sum-ymin)+1): print(x, sum-x) which does run through 6 9

Re: [sage-support] simple desolve_tides_mpfr crash, even for SageMath Cell Server

2020-04-16 Thread Vincent Delecroix
Hi, What do you mean by crash? Could you copy paste the *full* traceback that you obtain? Le 16/04/2020 à 17:04, Toan T Nguyen a écrit : Hi all, I'm trying to solve a system of 1st order ODE using desolve_tides_mpfr() arbitrary precision module. My script crashes at the external gcc call. So

Re: [sage-support] sage compilation: Error running the postinst script for pplpy-0.8.4

2020-04-11 Thread Vincent Delecroix
I am not, there are two Vincent Delecroix working in universities in France. I am the other one https://www.labri.fr/perso/vdelecro/ Beyond working from the same institution we do not have any relation. Le 11/04/2020 à 18:12, Carlos Rodriguez a écrit : ok. Now it seems it worked! Thank you

Re: [sage-support] sage compilation: Error running the postinst script for pplpy-0.8.4

2020-04-11 Thread Vincent Delecroix
AM Carlos Rodriguez wrote: that's it: I have $O set to my omega0 On Sat, Apr 11, 2020 at 7:30 AM Vincent Delecroix < 20100.delecr...@gmail.com> wrote: Le 11/04/2020 à 13:28, Vincent Delecroix a écrit : Could you also check if $MAKE is in the environment? and $O a

Re: [sage-support] sage compilation: Error running the postinst script for pplpy-0.8.4

2020-04-11 Thread Vincent Delecroix
running the compilation failed again! something about in dochtml.log (attached) I'll try what you suggested also... am I going to be able to compile this beast? On Sat, Apr 11, 2020 at 7:29 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: Could you also check if

Re: [sage-support] sage compilation: Error running the postinst script for pplpy-0.8.4

2020-04-11 Thread Vincent Delecroix
Le 11/04/2020 à 13:28, Vincent Delecroix a écrit : Could you also check if $MAKE is in the environment? and $O as well (this is a shortcut used by sphinx default Makefile) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubs

Re: [sage-support] sage compilation: Error running the postinst script for pplpy-0.8.4

2020-04-11 Thread Vincent Delecroix
20 à 13:15, Carlos Rodriguez a écrit : No. I did a "printenv | grep omega0" and "printenv | grep SPHINX" and nothing showed up. On Sat, Apr 11, 2020 at 7:06 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: Hi Carlos, There is indeed some interference between

Re: [sage-support] sage compilation: Error running the postinst script for pplpy-0.8.4

2020-04-11 Thread Vincent Delecroix
that maybe interfering? I am eager to get this working. I am trying to add my Sim plificator to the symbolic package. --Carlos. On Sat, Apr 11, 2020 at 5:56 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: Thanks for your report. The postinstall script for pplpy just compiles and in

Re: [sage-support] sage compilation: Error running the postinst script for pplpy-0.8.4

2020-04-11 Thread Vincent Delecroix
Thanks for your report. The postinstall script for pplpy just compiles and installs the documentation. For now, you can use the workaround $ export SAGE_SPKG_INSTALL_DOCS="no" $ make I don't quite understand what is happening. From your log usage: sphinx-build [OPTIONS] SOURCEDIR OUTPUTDIR

Re: [sage-support] Re: Slow Computations in Quotient Rings

2020-04-06 Thread Vincent Delecroix
Dear rana-aere, If you think this is an issue, then *you* should be working on it. Every SageMath developers is a volunteer that does not take orders and think by herself or himself what is relevant to do. Note that helping others is indeed a concern for most of them. As a start: - you can

Re: [sage-support] Problem of Sage 9.0 and Maxima powerseries

2020-03-24 Thread Vincent Delecroix
What is this syntax maxima(f, x) intended for? Just use sage: maxima(f).powerseries(x,0) 'sum(_SAGE_VAR_x^i3,i3,0,inf) I hardly understand why it worked in previous versions. Le 24/03/2020 à 14:13, mendes a écrit : Dear all, In previous versions of Sagemath, this worked fine: f= 1/(1-x)

Re: [sage-support] Optional package cunningham_tables unavailable (version 9.0)

2020-03-12 Thread Vincent Delecroix
What is your setup? Le 12/03/2020 à 14:15, 'Peter Mueller' via sage-support a écrit : Calling the example from sage.rings.factorint import factor_cunningham factor_cunningham(2^257-1) from the docs yields the message that the Cunningham tables should be installed via ``sage -i

Re: [sage-support] Re: Approximating integral with infinite bounds

2020-02-29 Thread Vincent Delecroix
Le 29/02/2020 à 21:41, Emmanuel Charpentier a écrit : You may try to separate the real and imaginary part of your function, and sample from these part. Look at Stan and the companion R package bridgesampling

Re: [sage-support] TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

2020-02-16 Thread Vincent Delecroix
) I open https://trac.sagemath.org/ticket/29210 to track the issue. Vincent Le 16/02/2020 à 23:59, Vincent Delecroix a écrit : As a start you can notice that SageMath cell has switch to Python 3. To see that, run the following two lines in a cell import sys print(sys.version) In particular you

Re: [sage-support] TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

2020-02-16 Thread Vincent Delecroix
yvp) show ('numerical resolution : ') show (' f(t) : ', f(t)) show (' dérivée df(t) : ', df) show (' t approximation for f(t) = 0 (Newton-Raphson method) : ', son) #show ('df(t) = 0 : ', st) return On Sun, Feb 16, 2020 at 8:51 PM Vincent Delecroix <20100.delecr...@gmail.com> wrote:

Re: [sage-support] TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

2020-02-16 Thread Vincent Delecroix
Dear Bertrand, Where is "the code below"? Vincent Le 16/02/2020 à 15:44, Bertrand Cayzac a écrit : Hello, The code below worked happlily each time I launched it in SageMathCell until recently. It now exits with the error below in a call to scipy.optimize.newton while I didn't make any

Re: [sage-support] Output in characteristic 2

2020-02-03 Thread Vincent Delecroix
The command sage: P. = GF(2)[] is *not* declaring variables x0, x1, etc to be elements in GF(2) but rather *assigns* x0, x1, etc to be generators of a poynomial algebra. sage: P. = GF(2)[] sage: (x0 * x1 + x3 + 1)^2 x0^2*x1^2 + x3^2 + 1 If you want to use elements of GF(2) simply do sage: K

Re: [sage-support] sagemath 9 + Graph

2020-01-25 Thread Vincent Delecroix
Dear Jean-Francois, When you do report an error having to do with the SageMath installation (and not about "how to use SageMath"), it is strongly advised to state precisely what is your setup. SageMath installs on dozens of operating systems in half dozen ways. Each installation setup comes with

Re: [sage-support] Mixing GP and @interact inside Sage Cell

2020-01-13 Thread Vincent Delecroix
If you want to interact with PARI/GP it is much better (= faster and more reliable) to use the cypari interface. Namely sage: s = pari('square(x)=x^2') sage: s(20) 400 If you want to convert the output of s(20) (a "Gen") then use sage: s(20).sage() 400 sage: type(s20) sage: type(s(20).sage())

Re: [sage-support] optional packages and binder

2019-10-30 Thread Vincent Delecroix
Estimado Enrique, If you want to compile anything, you should be using development docker image, that is sagemath/sagemath-dev (you can tag if 8.8 if you wish). Be careful that the image is twice bigger. See the documentation at https://hub.docker.com/u/sagemath/sagemath Vincent Le

Re: [sage-support] optional packages and binder

2019-10-29 Thread Vincent Delecroix
Dear Enrique, It would be helpful to have the complete error message and the log of the failed build. And if you know how to do that, you can open a trac ticket. Also, it would be nice to have docker images for Sage with most (if not all) optional packages installed. Vincent Le 29/10/2019 à

Re: [sage-support] Re: Cannot load session create in another version of sage

2019-09-03 Thread Vincent Delecroix
Le 03/09/2019 à 11:28, Simon King a écrit : Hi Vincent, On 2019-09-03, Vincent Delecroix <20100.delecr...@gmail.com> wrote: I believe a CAS which doesn't even *attempt* to offer a way to store user data permanently and reliably is a failure. I'll rant more on it on the ticket. I st

Re: [sage-support] Re: Cannot load session create in another version of sage

2019-09-03 Thread Vincent Delecroix
Le 03/09/2019 à 09:07, Simon King a écrit : Hi Vincent, On 2019-09-03, Vincent Delecroix <20100.delecr...@gmail.com> wrote: If I understand correctly, saving/loading individual objects is supposed to be backwards compatible. This is not correct. Saving individual object is not su

Re: [sage-support] Cannot load session create in another version of sage

2019-09-03 Thread Vincent Delecroix
Le 30/08/2019 à 12:54, Simon King a écrit : Hi Steve, On Friday, August 30, 2019 at 11:55:45 AM UTC+2, Dima Pasechnik wrote: On Fri, Aug 30, 2019 at 12:48 PM 'SteveJJ' via sage-support > wrote: I saved a session when using sage 8.0. When I try to load that session into sage 8.8, I get

Re: [sage-support] sage crash report

2019-09-03 Thread Vincent Delecroix
Dear Oscar, You should tell precisely what is your installation of Sage that is broken. Looking at the crash report, I assume that you use Sage from the system. In this situation, you would better address your question to some Debian help forum or mailing list. For the bug you encountered, it

Re: [sage-support] Problem with factor in SymbolicRing

2019-08-04 Thread Vincent Delecroix
I confirm the bug on 8.9.beta5. It is most probably a bug in Pynac. Note that if you multiply by 2 it "works" sage: (2*num).factor() (16*r^6 - 32*r^4*x^2 + 16*r^2*x^4 + 32*r^4*y^2 + 32*r^2*x^2*y^2 + 16*r^2*y^4 + 80*r^2*x^2 + 16*x^4 + 16*r^2*y^2 + 32*x^2*y^2 + 16*y^4 - 16*x^2 - 16*y^2)*r^4/(r^6

Re: [sage-support] Sage equivalent for GP's "padicappr"?

2019-08-01 Thread Vincent Delecroix
Dear Fernando, PARI/GP is included in Sage so that you can at least do sage: R = PolynomialRing(ZZ, 'x') sage: x = R.gen() sage: p = x^2 - 2 sage: pari.padicappr(p, pari('4 + O(7)')) [4 + O(7)]~ There might be some more convenient functions using the Sage native implementations of p-adic

Re: [sage-support] problem with matrix over finite field

2019-07-12 Thread Vincent Delecroix
Dear Hal, For the time being, you can use the following workaround matrix(GF(25, a), [[1,0], [0, 1]], implementation='generic') Le 11/07/2019 à 23:20, Hal Snyder a écrit : This works on sage-8.5: sage: a = var('a') : matrix(GF(25, a), [[1,0], [0, 1]]) : [1 0] [0 1] but not on

Re: [sage-support] Re: problem with matrix over finite field

2019-07-12 Thread Vincent Delecroix
Le 12/07/2019 à 11:56, Harald Schilly a écrit : I've no idea why this is happening on CoCalc. My first guess is there is an optional package installed, which is causing this. As Simon already said, there is meataxe installed. While Interestingly, this works: matrix(GF(16), [[1,0], [0, 1]])

Re: [sage-support] ask.sagemath server error

2019-06-28 Thread Vincent Delecroix
Dear Mark, I just created a login/password account without any problem. Please try again as it might have been a temporary problem. Best Vincent Le 27/06/2019 à 18:28, Mark Butler a écrit : I am hoping to write a package for Sage and have a few questions I would like to ask on ask.sagemath,

Re: [sage-support] The behavior of empty sums

2019-06-23 Thread Vincent Delecroix
The SageMath function sum accepts an optional "zero" argument precisely for this purpose sage: sum([], 0) 0 sage: sum([], 11) 11 sage: sum([], []) [] Le 17/06/2019 à 11:18, Peter Luschny a écrit : Hi, I think we should be confident that the sum of integers is again an integer, the sum of

Re: [sage-support] An unreliable decimal approximation using N(prec=)

2019-05-23 Thread Vincent Delecroix
This is not an issue. The numerical approximation function N simply evaluates the expression at a given precision. There is no guarantee on the overall result as cancellation may occur. If you want accurate results, use interval or ball arithmetic. If you note your symbolic expression "expr" you

Re: [sage-support] Sage Crash Report

2019-05-14 Thread Vincent Delecroix
t_factory.py -rw-r--r-- 1 root root 1871 Apr 15 21:51 test_factory.pyc -rw-r--r-- 1 root root 50516 Dec 7 2017 unique_representation.py -rw-r--r-- 1 root root 51060 Apr 15 21:51 unique_representation.pyc On Sun, Apr 28, 2019 at 4:46 PM Vincent Delecroix <20100.delecr...@gmail.com> wr

Re: [sage-support] Function Field

2019-05-13 Thread Vincent Delecroix
Hello, It works for me and I obtain [Place (1/x, y), Place (1/x, y + 1), Place (x, x*y)] Could you describe the SageMath version you are using? Vincent Le 13/05/2019 à 10:10, Santanu Sarkar a écrit : Hi, This code works well. K. = FunctionField(GF(2)) R. = K[] f=y^2 + y + 1/x L. =

Re: [sage-support] Sage Crash Report

2019-04-28 Thread Vincent Delecroix
-packages/sage/structure via $ ls -l /usr/lib/python2.7/dist-packages/sage/structure/ Le 28/04/2019 à 21:05, Erik Wallace a écrit : Yes, I downloaded via apt. The supporting python packages were also downloaded via apt. On Sat, Apr 27, 2019 at 5:08 PM Vincent Delecroix <20100.delecr...@gmail.

Re: [sage-support] Sage Crash Report

2019-04-27 Thread Vincent Delecroix
Hello, What did you downloaded exactly? You meant that you installed Sage from via the package manager (apt)? Best Vincent Le 23/04/2019 à 03:22, Erik Wallace a écrit : Hello, I am submitting this crash report. I downloaded sage from the Ubuntu repo. Please let me know, how I can fix

Re: [sage-support] sage-8.7-Ubuntu_18.04-x86_64 Installation problem

2019-04-27 Thread Vincent Delecroix
distro is a very old lady… (12.04). I just took my chances. Even if now sage installation goes smoothly, it crashes on opening. I think it is not worth debugging, I will soon update my antique Ubuntu then go back on sage. Thank you for your help. 从我的安卓手机发的。 On Sat, 27 Apr 2019, 08:37 Vincent

Re: [sage-support] sage-8.7-Ubuntu_18.04-x86_64 Installation problem

2019-04-27 Thread Vincent Delecroix
Dear Philippe, On the other hand, your distribution provides packages for SageMath, see https://packages.ubuntu.com/search?keywords=sagemath Just install the four packages sagemath sagemath-jupyter sagemath-doc-en sagemath-doc-fr Best Vincent Le 26/04/2019 à 20:47, Philippe

Re: [sage-support] Problem trying to run sagemath in ubuntu 18.04

2019-04-17 Thread Vincent Delecroix
Hola, You most probably launched SageMath as a super user and then the permissions in your home tree are messed up. Could you run the following command in a console and post the output back $ ls -lR ls /home/jgarcia/.sage It would also help if you describe how did you install SageMath (and

Re: [sage-support] Why does Sage Math crash instantly? / Running .sage files?

2019-04-08 Thread Vincent Delecroix
For reference, the exact same question is asked https://ask.sagemath.org/question/46051/here Vincent Le 08/04/2019 à 17:24, Adrian Scheuer a écrit : Hello. First of all, I need to Mention that I am completely new to Sage Math and I have no idea what causes my problem(s), like seriousely, no

Re: [sage-support] Preferred way to navigate through documentation

2019-04-07 Thread Vincent Delecroix
Dear Fan, I definitely agree that browsing through the reference manual is a pain. For general reference, I would advise to use one of the introductory books that are better organized - http://sagebook.gforge.inria.fr/english.html -

Re: [sage-support] not able to compile documentation in a Python module depending on SageMath

2019-03-25 Thread Vincent Delecroix
[1] https://gitlab.com/videlec/surface_dynamics Sorry about that Le 25/03/2019 à 10:44, Dima Pasechnik a écrit : On Mon, Mar 25, 2019 at 9:41 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: Dear all, I have a Python module [1] which depends on SageMath. The and what

[sage-support] not able to compile documentation in a Python module depending on SageMath

2019-03-25 Thread Vincent Delecroix
Dear all, I have a Python module [1] which depends on SageMath. The documentation used to build fine but now I got an error Exception occurred: File "/opt/sage/local/lib/python2.7/site-packages/sage/misc/sageinspect.py", line 2284, in sage_getsourcelines raise err TypeError: is a

Re: [sage-support] debian testing: sagemath crashing

2019-03-21 Thread Vincent Delecroix
Le 22/03/2019 à 00:10, Andreas Schuldei a écrit : File "/usr/local/lib/python2.7/dist-packages/six.py", line 809, in Here is something fishy in your log: why do you have Python packages installed in /usr/local? -- You received this message because you are subscribed to the Google Groups

Re: [sage-support] sage dev in /usr for ubuntu

2019-03-17 Thread Vincent Delecroix
Le 17/03/2019 à 00:27, henri.gir...@gmail.com a écrit : My real question is how to make a deb without all this question about proprietary software. I can not understand your real question. What do you mean by "make a deb"? You mean a Debian package? For that there is the documentation on

Re: [sage-support] sage dev in /usr for ubuntu

2019-03-16 Thread Vincent Delecroix
Hi, Unless your Linux distribution is very permissive you should never access the /usr repo in write mode. The standard place to install your custom softwares is /opt [1]. [1] https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard Vincent Le 16/03/2019 à 19:27, HG a écrit : Hi, I have

Re: [sage-support] Segmentation fault in is_squarefree

2019-03-03 Thread Vincent Delecroix
Cher Roland, Just to be sure, could you try in a *Python* Jupyter notebook to run a cell with the following content import cypari2 pari = cypari2.Pari() pari(109604757131194562205071319966444535807).issquarefree() (I expect the very same error to occur, but it is better to double

Re: [sage-support] Segmentation fault in is_squarefree

2019-03-03 Thread Vincent Delecroix
Hi, I can not reproduce (I am using Linux). Let me copy your traceback that was a mess because of linebreaks --- SignalError Traceback (most recent call last) in () 1

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Vincent Delecroix
I don't think this has ever been implemented in Sage. You have to figure out how to create a sparse matrix in magma and write Sage code to produce it. You can get inspiration from the current code of _magma_init_ def _magma_init_(self): P = magma(self.parent()) v =

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread Vincent Delecroix
Hi, Indeed that is a problem with all interfaces that are text based such as magma (to communicate with Magma Sage uses an emulation of a console). You can analyze what is sent to magma by running sage: m = matrix(2, [1,3,2,4]) sage: m._magma_init_(magma)

Re: [sage-support] Viewers in cocalc?

2019-02-26 Thread Vincent Delecroix
on is about Sage, not any other component of cocalc. On Tue, Feb 26, 2019 at 12:50 AM Vincent Delecroix < 20100.delecr...@gmail.com> wrote: This list concerns the SageMath software. If you want support for cocalc, you should consider writing to their support. They are very reactive. Best Vince

Re: [sage-support] "Questions about Sage"

2019-02-26 Thread Vincent Delecroix
Dear William, That is a good idea and the list seems to be complete. * You use both Sage and SageMath. It is a bit confusing. * I would change the order to reflect where you should look at. i.e. put as very last the "report a bug". Perhaps also, Sage documentation would be better as "one

Re: [sage-support] Viewers in cocalc?

2019-02-26 Thread Vincent Delecroix
This list concerns the SageMath software. If you want support for cocalc, you should consider writing to their support. They are very reactive. Best Vincent Le 26/02/2019 à 00:26, david.guichard a écrit : When I try to specify a viewer in a plot3d I get an error if I try anything other than

Re: [sage-support] algorithme

2019-01-20 Thread Vincent Delecroix
Bonjour, Cette liste est plutôt anglophone (voir les réponses). Il y a deux erreurs dans votre programme. Premièrement, il ne faut pas mettre de "\" à la fin des lignes. Ensuite, le signe de comparaison est "==" et non pas "=". Je vous conseille de regarder un livre sur la programmation en

Re: [sage-support] Period of a sequence

2018-12-17 Thread Vincent Delecroix
Indeed, primitive_length only consider periods that are integer divisors of the total length. If you want other periods you can use the (very slow) sage: Word(S).periods() [3, 6, 9] Vincent Le 17/12/2018 à 09:52, pc.chandr...@gmail.com a écrit : Thank you. However if

Re: [sage-support] Period of a sequence

2018-12-09 Thread Vincent Delecroix
You can use sage: w = Word(S) sage: w.primitive_length() [3] sage: w.primitive() word: 123 Le 09/12/2018 à 11:57, chandra chowdhury a écrit : I have a sequence which I stored in an array. I want to find the period of the sequence. But the following code gives error. S=[1,2,3,1,2,3]

Re: [sage-support] Polyhedron.integrate: non-full dimension

2018-12-04 Thread Vincent Delecroix
Le 04/12/2018 à 15:36, Dima Pasechnik a écrit : On Tue, Dec 4, 2018 at 1:47 PM Daniel Krenn wrote: For integrating a polynomial over a polyhedron LattE is used but if the dimension is not full, then it is not implemented, see sage: x, y = polygens(QQ, 'x, y') sage: P =

Re: [sage-support] Re: "Is 1 zero or nonzero?"

2018-10-24 Thread Vincent Delecroix
I can not reproduce (or I misunderstood your instructions). Please provide a *complete* list of commands that lead to the problem. Here is what I got sage: a = SR.var('a') sage: b = SR.var('b') sage: f(r) = r^5*(1-r^2)/((1-2*a*r+r^2)*(1-2*b*r+r^2)) sage: assume( -1 < a < 1)

Re: [sage-support] ImportError: /usr/lib/liblapack.so.3: undefined symbol: sgetrs_N_parallel

2018-10-21 Thread Vincent Delecroix
This is a known problem https://trac.sagemath.org/ticket/22006 Le 20/10/2018 à 01:03, slabbe a écrit : After doing sage -i cbc sagelib as suggested here http://doc.sagemath.org/html/en/thematic_tutorials/linear_programming.html#solvers I get sage: MixedIntegerLinearProgram('Coin')

Re: [sage-support] Re: Accessing group generators in libgap

2018-09-30 Thread Vincent Delecroix
Dear Simon, The main problem is that G is a gap group and not a libgap group. By gap group I mean that the interface going through the pexpect interface. The two systems gap and libgap do not seem to share the namespaces (which make sense). For example, this does work sage: gap(g1) f1

  1   2   3   4   >